mirror of
https://github.com/bobbimanners/emailler.git
synced 2024-10-01 21:56:43 +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);
|
jump_pos(0);
|
||||||
pos = startsel = endsel = 0;
|
pos = 0;
|
||||||
|
startsel = endsel = 65535U;
|
||||||
mode = SEL_NONE;
|
mode = SEL_NONE;
|
||||||
draw_screen();
|
draw_screen();
|
||||||
while (1) {
|
while (1) {
|
||||||
@ -967,7 +968,8 @@ int edit(char *fname) {
|
|||||||
show_error(userentry);
|
show_error(userentry);
|
||||||
}
|
}
|
||||||
jump_pos(0);
|
jump_pos(0);
|
||||||
pos = startsel = endsel = 0;
|
pos = 0;
|
||||||
|
startsel = endsel = 65535U;
|
||||||
mode = SEL_NONE;
|
mode = SEL_NONE;
|
||||||
draw_screen();
|
draw_screen();
|
||||||
break;
|
break;
|
||||||
@ -984,7 +986,8 @@ int edit(char *fname) {
|
|||||||
gapbegin = 0;
|
gapbegin = 0;
|
||||||
gapend = BUFSZ - 1;
|
gapend = BUFSZ - 1;
|
||||||
jump_pos(0);
|
jump_pos(0);
|
||||||
pos = startsel = endsel = 0;
|
pos = 0;
|
||||||
|
startsel = endsel = 65535U;
|
||||||
mode = SEL_NONE;
|
mode = SEL_NONE;
|
||||||
draw_screen();
|
draw_screen();
|
||||||
}
|
}
|
||||||
@ -1087,7 +1090,7 @@ int edit(char *fname) {
|
|||||||
jump_pos(startsel);
|
jump_pos(startsel);
|
||||||
gapend += (endsel - startsel);
|
gapend += (endsel - startsel);
|
||||||
}
|
}
|
||||||
startsel = endsel = 0;
|
startsel = endsel = 65535U;
|
||||||
mode = SEL_NONE;
|
mode = SEL_NONE;
|
||||||
draw_screen();
|
draw_screen();
|
||||||
break;
|
break;
|
||||||
@ -1123,7 +1126,7 @@ int edit(char *fname) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
copymove2_cleanup:
|
copymove2_cleanup:
|
||||||
startsel = endsel = 0;
|
startsel = endsel = 65535U;
|
||||||
mode = SEL_NONE;
|
mode = SEL_NONE;
|
||||||
draw_screen();
|
draw_screen();
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user