diff options
author | Jurica Bradaric <jbradaric@gmail.com> | 2019-09-23 21:19:26 +0200 |
---|---|---|
committer | Jurica Bradaric <jbradaric@gmail.com> | 2019-10-07 14:14:13 +0200 |
commit | 0586a4b512b2495d32f20c46946d35a0d403bd52 (patch) | |
tree | 6d63e31135bb1e2221e8e528b5dac9498a48a617 /src/nvim/ops.c | |
parent | c84b39150f3f5e12e042777f61ca9adf13be09d8 (diff) | |
download | rneovim-0586a4b512b2495d32f20c46946d35a0d403bd52.tar.gz rneovim-0586a4b512b2495d32f20c46946d35a0d403bd52.tar.bz2 rneovim-0586a4b512b2495d32f20c46946d35a0d403bd52.zip |
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)
https://github.com/vim/vim/commit/e96a2498f9a2d3e93ac07431f6d4afd77f30afdf
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 6f515151d6..0d27365d2b 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -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 '='; } |