mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
allow both ^H and DEL to backspace in insert mode (bug #23)
This commit is contained in:
parent
0ef24c672a
commit
d13b90b9e8
@ -1612,7 +1612,7 @@ static Byte *char_insert(Byte * p, Byte c) // insert the char c at 'p'
|
|||||||
if ((p[-1] != '\n') && (dot>text)) {
|
if ((p[-1] != '\n') && (dot>text)) {
|
||||||
p--;
|
p--;
|
||||||
}
|
}
|
||||||
} else if (c == erase_char) { // Is this a BS
|
} else if (c == erase_char || c == 8 || c == 127) { // Is this a BS
|
||||||
// 123456789
|
// 123456789
|
||||||
if ((p[-1] != '\n') && (dot>text)) {
|
if ((p[-1] != '\n') && (dot>text)) {
|
||||||
p--;
|
p--;
|
||||||
@ -3249,7 +3249,7 @@ key_cmd_mode:
|
|||||||
//
|
//
|
||||||
// dont separate these two commands. 'f' depends on ';'
|
// dont separate these two commands. 'f' depends on ';'
|
||||||
//
|
//
|
||||||
//**** fall thru to ... 'i'
|
//**** fall thru to ... ';'
|
||||||
case ';': // ;- look at rest of line for last forward char
|
case ';': // ;- look at rest of line for last forward char
|
||||||
if (cmdcnt-- > 1) {
|
if (cmdcnt-- > 1) {
|
||||||
do_cmd(';');
|
do_cmd(';');
|
||||||
|
Loading…
Reference in New Issue
Block a user