From 9a25e1e1f270f39891621fcb943dbb82c2127aa6 Mon Sep 17 00:00:00 2001 From: Matuush Date: Thu, 17 Apr 2025 14:02:16 +0200 Subject: [PATCH] Fix copying position --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 26a7926..9792980 100644 --- a/main.cpp +++ b/main.cpp @@ -109,7 +109,7 @@ void copy_selection(position p = cur + file_offset) { // Determine first and last selected position position start = p, end = clp; if(clp.r < cur.r || (clp.r == cur.r && clp.c < cur.c)) - start = clp, end = cur; + start = clp, end = p; // Clear previous selection selection.clear();