From 11289ad733e7b3f72ee583ccbfe982a78e099c6c Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Wed, 8 Sep 2021 16:35:40 +0200 Subject: [PATCH] fix(termdebug): replace term_getline with getbufline #15598 Correct incomplete runtime file port in https://github.com/neovim/neovim/commit/79cbbd5179d816a64989243cb1ce85b802a2896f --- runtime/pack/dist/opt/termdebug/plugin/termdebug.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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