aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/debugger.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-04-14 13:49:28 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-04-14 16:10:09 +0800
commit8729c41f44de3b164ad8d01bb3558c6400e27952 (patch)
tree9c611cef6c60a7522e9cbaf47d90a8c937f9a385 /src/nvim/debugger.c
parent4b84b2e2aa3d7ab6a4e346c7439826700682f5f1 (diff)
downloadrneovim-8729c41f44de3b164ad8d01bb3558c6400e27952.tar.gz
rneovim-8729c41f44de3b164ad8d01bb3558c6400e27952.tar.bz2
rneovim-8729c41f44de3b164ad8d01bb3558c6400e27952.zip
vim-patch:8.2.1080: Vim9: no line break allowed in a for loop
Problem: Vim9: no line break allowed in a for loop. Solution: Skip line breaks in for command. https://github.com/vim/vim/commit/b7a78f7a6713f07d2fcad0b27dea22925c7b1cdf Omit *_break_count and skip_for_lines(): Vim9 script only. Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/debugger.c')
-rw-r--r--src/nvim/debugger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/debugger.c b/src/nvim/debugger.c
index 3c9a63f5a3..90723372a9 100644
--- a/src/nvim/debugger.c
+++ b/src/nvim/debugger.c
@@ -494,7 +494,7 @@ static typval_T *eval_expr_no_emsg(struct debuggy *const bp)
{
// Disable error messages, a bad expression would make Vim unusable.
emsg_off++;
- typval_T *const tv = eval_expr(bp->dbg_name);
+ typval_T *const tv = eval_expr(bp->dbg_name, NULL);
emsg_off--;
return tv;
}