mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 23:31:51 +00:00
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:
@@ -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 '=';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user