Now the the clear screen change has been committed, here's the
insert mode ^R (redraw) diff again with a man page update. Note
that ^R is already supported in command mode.
OK?
- todd
Index: bin/ksh/ksh.1
===================================================================
RCS file: /cvs/src/bin/ksh/ksh.1,v
retrieving revision 1.212
diff -u -p -u -r1.212 ksh.1
--- bin/ksh/ksh.1 8 Mar 2021 06:20:50 -0000 1.212
+++ bin/ksh/ksh.1 10 Mar 2021 20:08:21 -0000
@@ -5060,6 +5060,8 @@ See the
command in
.Sx Emacs editing mode
for more information.
+.It ^R
+Redraw the current line.
.It ^V
Literal next.
The next character typed is not treated specially (can be used
Index: bin/ksh/vi.c
===================================================================
RCS file: /cvs/src/bin/ksh/vi.c,v
retrieving revision 1.58
diff -u -p -u -r1.58 vi.c
--- bin/ksh/vi.c 10 Mar 2021 20:06:04 -0000 1.58
+++ bin/ksh/vi.c 10 Mar 2021 20:08:21 -0000
@@ -658,6 +658,10 @@ vi_insert(int ch)
do_clear_screen();
break;
+ case CTRL('r'):
+ redraw_line(1, 0);
+ break;
+
case CTRL('i'):
if (Flag(FVITABCOMPLETE)) {
complete_word(0, 0);