Park selection at the end, when not being used

This commit is contained in:
Bobbi Webber-Manners 2020-07-18 01:27:23 -04:00
parent 1561c6d8d4
commit 0e3e7ee449

View File

@ -829,7 +829,8 @@ int edit(char *fname) {
}
}
jump_pos(0);
pos = startsel = endsel = 0;
pos = 0;
startsel = endsel = 65535U;
mode = SEL_NONE;
draw_screen();
while (1) {
@ -967,7 +968,8 @@ int edit(char *fname) {
show_error(userentry);
}
jump_pos(0);
pos = startsel = endsel = 0;
pos = 0;
startsel = endsel = 65535U;
mode = SEL_NONE;
draw_screen();
break;
@ -984,7 +986,8 @@ int edit(char *fname) {
gapbegin = 0;
gapend = BUFSZ - 1;
jump_pos(0);
pos = startsel = endsel = 0;
pos = 0;
startsel = endsel = 65535U;
mode = SEL_NONE;
draw_screen();
}
@ -1087,7 +1090,7 @@ int edit(char *fname) {
jump_pos(startsel);
gapend += (endsel - startsel);
}
startsel = endsel = 0;
startsel = endsel = 65535U;
mode = SEL_NONE;
draw_screen();
break;
@ -1123,7 +1126,7 @@ int edit(char *fname) {
}
}
copymove2_cleanup:
startsel = endsel = 0;
startsel = endsel = 65535U;
mode = SEL_NONE;
draw_screen();
break;