aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/pack/dist/opt/termdebug/plugin/termdebug.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
index 3e02c97228..2914e2bc4d 100644
--- a/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
+++ b/runtime/pack/dist/opt/termdebug/plugin/termdebug.vim
@@ -263,7 +263,7 @@ func s:StartDebug_term(dict)
endif
for lnum in range(1, 200)
- if term_getline(s:gdbbuf, lnum) =~ 'startupdone'
+ if get(getbufline(s:gdbbuf, lnum), 0, '') =~ 'startupdone'
let try_count = 9999
break
endif