From 4d9cfcd302f53b54b13de8f74efe2e45d4a71b2d Mon Sep 17 00:00:00 2001 From: Krzosa Karol Date: Sat, 31 Jan 2026 07:30:40 +0100 Subject: [PATCH] MergeCarets in SelectCOmment --- src/text_editor/commands.cpp | 1 + 1 file changed, 1 insertion(+) 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