mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-24 09:38:29 +02:00
Sort Codemirror widgets Fixes #101
This commit is contained in:
@@ -165,6 +165,10 @@ function templateTags(
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Widgets must be sorted start to end
|
||||||
|
widgets.sort((a, b) => a.from - b.from);
|
||||||
|
|
||||||
return Decoration.set(widgets);
|
return Decoration.set(widgets);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user