fix(termdebug): replace term_getline with getbufline #15598

Correct incomplete runtime file port in
79cbbd5179
This commit is contained in:
Christian Clason 2021-09-08 16:35:40 +02:00 committed by GitHub
parent 79cbbd5179
commit 11289ad733
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -263,7 +263,7 @@ func s:StartDebug_term(dict)
endif endif
for lnum in range(1, 200) 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 let try_count = 9999
break break
endif endif