aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_docmd.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-09-03 09:39:13 +0800
committerGitHub <noreply@github.com>2022-09-03 09:39:13 +0800
commit042d5df9567bc37fb4a46bcf43f0f46b16eadf6d (patch)
treeee597105bada2b66d4d51b6086c70b5e8c39e48a /src/nvim/ex_docmd.c
parent1ffd527c837fb2465c9659273bbe5447a1352db2 (diff)
parentc62e5b50795d38db68f198a3d1230c047fc0ccfa (diff)
downloadrneovim-042d5df9567bc37fb4a46bcf43f0f46b16eadf6d.tar.gz
rneovim-042d5df9567bc37fb4a46bcf43f0f46b16eadf6d.tar.bz2
rneovim-042d5df9567bc37fb4a46bcf43f0f46b16eadf6d.zip
Merge pull request #20063 from zeertzjq/vim-9.0.0360
vim-patch:8.2.1505,9.0.{0360,0362}
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r--src/nvim/ex_docmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index c2c5bb90ce..6517ebd081 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -642,7 +642,7 @@ int do_cmdline(char *cmdline, LineGetter fgetline, void *cookie, int flags)
// Check for the next breakpoint at or after the ":while"
// or ":for".
- if (breakpoint != NULL) {
+ if (breakpoint != NULL && lines_ga.ga_len > current_line) {
*breakpoint = dbg_find_breakpoint(getline_equal(fgetline, cookie, getsourceline), fname,
((wcmd_T *)lines_ga.ga_data)[current_line].lnum - 1);
*dbg_tick = debug_tick;