summaryrefslogtreecommitdiffstats
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-07-14 22:35:55 +0200
committerBram Moolenaar <Bram@vim.org>2010-07-14 22:35:55 +0200
commit26dcc7e8df8f0f1852752b9107ba4b0408061554 (patch)
tree306cabe482536013ca31756a4c6bac5ba93fc0b2 /src/edit.c
parent61623362bedd22659d4fbf8ea6f55f5c8c5285e8 (diff)
Fix: When entering a digraph or special character after a line that fits the
window the '?' or '^' on the next line is not redrawn. (Ian Kelling)
Diffstat (limited to 'src/edit.c')
-rw-r--r--src/edit.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/edit.c b/src/edit.c
index 2db06cf0c1..e5f6b3312b 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -1547,6 +1547,8 @@ ins_ctrl_v()
#endif
c = get_literal();
+ edit_unputchar(); /* when line fits in 'columns' the '^' is at the start
+ of the next line and will not be redrawn */
#ifdef FEAT_CMDL_INFO
clear_showcmd();
#endif
@@ -9620,6 +9622,9 @@ ins_digraph()
c = plain_vgetc();
--no_mapping;
--allow_keys;
+ edit_unputchar(); /* when line fits in 'columns' the '?' is at the start
+ of the next line and will not be redrawn */
+
if (IS_SPECIAL(c) || mod_mask) /* special key */
{
#ifdef FEAT_CMDL_INFO
@@ -9652,6 +9657,8 @@ ins_digraph()
cc = plain_vgetc();
--no_mapping;
--allow_keys;
+ edit_unputchar(); /* when line fits in 'columns' the '?' is at the
+ start of the next line and will not be redrawn */
if (cc != ESC)
{
AppendToRedobuff((char_u *)CTRL_V_STR);
@@ -9662,7 +9669,6 @@ ins_digraph()
return c;
}
}
- edit_unputchar();
#ifdef FEAT_CMDL_INFO
clear_showcmd();
#endif