Fix copying position

This commit is contained in:
Matúš Púll 2025-04-17 14:02:16 +02:00
parent fe62172682
commit 9a25e1e1f2

View file

@ -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();