aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/vi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/editors/vi.c b/editors/vi.c
index fc1deeb3c..eb0aa33f6 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -1612,7 +1612,7 @@ static Byte *char_insert(Byte * p, Byte c) // insert the char c at 'p'
1612 if ((p[-1] != '\n') && (dot>text)) { 1612 if ((p[-1] != '\n') && (dot>text)) {
1613 p--; 1613 p--;
1614 } 1614 }
1615 } else if (c == erase_char) { // Is this a BS 1615 } else if (c == erase_char || c == 8 || c == 127) { // Is this a BS
1616 // 123456789 1616 // 123456789
1617 if ((p[-1] != '\n') && (dot>text)) { 1617 if ((p[-1] != '\n') && (dot>text)) {
1618 p--; 1618 p--;
@@ -3083,8 +3083,8 @@ key_cmd_mode:
3083 break; 3083 break;
3084 case 'h': // h- move left 3084 case 'h': // h- move left
3085 case VI_K_LEFT: // cursor key Left 3085 case VI_K_LEFT: // cursor key Left
3086 case 8: // ctrl-H- move left (This may be ERASE char) 3086 case 8: // ctrl-H- move left (This may be ERASE char)
3087 case 127: // DEL- move left (This may be ERASE char) 3087 case 127: // DEL- move left (This may be ERASE char)
3088 if (cmdcnt-- > 1) { 3088 if (cmdcnt-- > 1) {
3089 do_cmd(c); 3089 do_cmd(c);
3090 } // repeat cnt 3090 } // repeat cnt
@@ -3249,7 +3249,7 @@ key_cmd_mode:
3249 // 3249 //
3250 // dont separate these two commands. 'f' depends on ';' 3250 // dont separate these two commands. 'f' depends on ';'
3251 // 3251 //
3252 //**** fall thru to ... 'i' 3252 //**** fall thru to ... ';'
3253 case ';': // ;- look at rest of line for last forward char 3253 case ';': // ;- look at rest of line for last forward char
3254 if (cmdcnt-- > 1) { 3254 if (cmdcnt-- > 1) {
3255 do_cmd(';'); 3255 do_cmd(';');