summaryrefslogtreecommitdiffstats
path: root/lib/libedit/common.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-06-27 16:10:40 +0000
committerbrian <brian@FreeBSD.org>1998-06-27 16:10:40 +0000
commita2d16c69749e92b1c9f77a6574367a9a03fc34bb (patch)
tree69a15bba0358f5d889840c775bc6beb4fcd439de /lib/libedit/common.c
parent3231ba4ceb6fd16d9e5a0bdca97a2a112de2734e (diff)
downloadFreeBSD-src-a2d16c69749e92b1c9f77a6574367a9a03fc34bb.zip
FreeBSD-src-a2d16c69749e92b1c9f77a6574367a9a03fc34bb.tar.gz
Fixes assorted problems with the history edit functions in libedit. This
affects sh, ftp (and others?). Submitted by: Max Euston <meuston@jmrodgers.com> PR: 6516
Diffstat (limited to 'lib/libedit/common.c')
-rw-r--r--lib/libedit/common.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libedit/common.c b/lib/libedit/common.c
index 6908819..66b7c90 100644
--- a/lib/libedit/common.c
+++ b/lib/libedit/common.c
@@ -110,8 +110,11 @@ ed_insert(el, c)
re_refresh(el);
}
+ if (el->el_state.inputmode == MODE_REPLACE_1 || el->el_state.inputmode == MODE_REPLACE)
+ el->el_chared.c_undo.action=CHANGE;
+
if (el->el_state.inputmode == MODE_REPLACE_1)
- (void) vi_command_mode(el, 0);
+ return vi_command_mode(el, 0);
return CC_NORM;
}
OpenPOWER on IntegriCloud