vim-patch:8.1.1588: in :let-heredoc line continuation is recognized

Problem:    In :let-heredoc line continuation is recognized.
Solution:   Do not consume line continuation. (Ozaki Kiichi, closes vim/vim#4580)
e96a2498f9
This commit is contained in:
Jurica Bradaric
2019-09-23 21:19:26 +02:00
parent c84b39150f
commit 0586a4b512
11 changed files with 68 additions and 58 deletions

View File

@@ -671,13 +671,15 @@ int get_expr_register(void)
{
char_u *new_line;
new_line = getcmdline('=', 0L, 0);
if (new_line == NULL)
new_line = getcmdline('=', 0L, 0, true);
if (new_line == NULL) {
return NUL;
if (*new_line == NUL) /* use previous line */
}
if (*new_line == NUL) { // use previous line
xfree(new_line);
else
} else {
set_expr_line(new_line);
}
return '=';
}