mirror of
https://github.com/bobbimanners/emailler.git
synced 2024-11-17 15:07:30 +00:00
Park selection at the end, when not being used
This commit is contained in:
parent
1561c6d8d4
commit
0e3e7ee449
13
apps/edit.c
13
apps/edit.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user