diff --git a/src/text_editor/commands.cpp b/src/text_editor/commands.cpp index d207366..46204bb 100644 --- a/src/text_editor/commands.cpp +++ b/src/text_editor/commands.cpp @@ -254,5 +254,6 @@ void CMD_SelectComment() { Range scope = EncloseScope(active.buffer, it.range.min, it.range.max, u"/*", u"*/"); it.range = scope; } + MergeCarets(active.buffer, &active.view->carets); } RegisterCommand(CMD_SelectComment, "ctrl-shift-l", "Find /* and */ and select the content in between"); \ No newline at end of file