Fix copying position
This commit is contained in:
parent
fe62172682
commit
9a25e1e1f2
1 changed files with 1 additions and 1 deletions
2
main.cpp
2
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();
|
||||
|
|
Loading…
Reference in a new issue