mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
[Backport release-0.8] fix(tutor): fix problem of failing to get buf name (#20985)
fix(tutor): fix problem of failing to get buf name
Closes https://github.com/neovim/neovim/issues/20920
(cherry picked from commit 86f2863e8f
)
Co-authored-by: erw7 <erw7.github@gmail.com>
This commit is contained in:
parent
a35efe1e4f
commit
8e28d8a370
@ -104,7 +104,7 @@ function! tutor#CheckLine(line)
|
||||
if exists('b:tutor_metadata') && has_key(b:tutor_metadata, 'expect')
|
||||
let bufn = bufnr('%')
|
||||
let ctext = getline(a:line)
|
||||
let signs = sign_getplaced('.', {'lnum': a:line})[0].signs
|
||||
let signs = sign_getplaced(bufn, {'lnum': a:line})[0].signs
|
||||
if !empty(signs)
|
||||
call sign_unplace('', {'id': signs[0].id})
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user