From d8161ac43d9b584fd8f2cd98c31facf3958b28f6 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Wed, 30 Sep 2026 13:23:18 +0300 Subject: [PATCH] Swap X and Y coordinates in select-all command --- src/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command.go b/src/command.go index cd689f2..ca5f542 100644 --- a/src/command.go +++ b/src/command.go @@ -26,7 +26,7 @@ func initCommands() { lastLine := window.CurrentBuffer.Contents[len(window.CurrentBuffer.Contents)-1] window.CurrentBuffer.Selection = &Selection{ selectionStart: Position{0, 0}, - selectionEnd: Position{len(window.CurrentBuffer.Contents) - 1, len(lastLine) - 1}, + selectionEnd: Position{len(lastLine), len(window.CurrentBuffer.Contents) - 1}, } window.PrintMessage("Selected all text", TYPER_MESSAGE_INFO)