0
0
mirror of https://github.com/vim/vim.git synced 2025-10-06 05:44:14 -04:00

updated for version 7.1-043

This commit is contained in:
Bram Moolenaar
2007-07-28 12:21:47 +00:00
parent 2240aeb4cb
commit 7662423e10
2 changed files with 6 additions and 4 deletions

View File

@@ -2095,11 +2095,11 @@ getexmodeline(promptc, dummy, indent)
garray_T line_ga; garray_T line_ga;
char_u *pend; char_u *pend;
int startcol = 0; int startcol = 0;
int c1; int c1 = 0;
int escaped = FALSE; /* CTRL-V typed */ int escaped = FALSE; /* CTRL-V typed */
int vcol = 0; int vcol = 0;
char_u *p; char_u *p;
int prev_char = 0; int prev_char;
/* Switch cursor on now. This avoids that it happens after the "\n", which /* Switch cursor on now. This avoids that it happens after the "\n", which
* confuses the system function that computes tabstops. */ * confuses the system function that computes tabstops. */
@@ -2152,6 +2152,7 @@ getexmodeline(promptc, dummy, indent)
/* Get one character at a time. Don't use inchar(), it can't handle /* Get one character at a time. Don't use inchar(), it can't handle
* special characters. */ * special characters. */
prev_char = c1;
c1 = vgetc(); c1 = vgetc();
/* /*
@@ -2209,7 +2210,6 @@ add_indent:
redraw: redraw:
/* redraw the line */ /* redraw the line */
msg_col = startcol; msg_col = startcol;
windgoto(msg_row, msg_col);
vcol = 0; vcol = 0;
for (p = (char_u *)line_ga.ga_data; for (p = (char_u *)line_ga.ga_data;
p < (char_u *)line_ga.ga_data + line_ga.ga_len; ++p) p < (char_u *)line_ga.ga_data + line_ga.ga_len; ++p)
@@ -2228,6 +2228,7 @@ redraw:
} }
} }
msg_clr_eos(); msg_clr_eos();
windgoto(msg_row, msg_col);
continue; continue;
} }
@@ -2273,7 +2274,6 @@ redraw:
if (IS_SPECIAL(c1)) if (IS_SPECIAL(c1))
c1 = '?'; c1 = '?';
((char_u *)line_ga.ga_data)[line_ga.ga_len] = c1; ((char_u *)line_ga.ga_data)[line_ga.ga_len] = c1;
prev_char = c1;
if (c1 == '\n') if (c1 == '\n')
msg_putchar('\n'); msg_putchar('\n');
else if (c1 == TAB) else if (c1 == TAB)

View File

@@ -666,6 +666,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
43,
/**/ /**/
42, 42,
/**/ /**/