# Highlight the selected symbol
var col: number =
- bnr->getbufline(symbolTable[mid].outlineLine)[0]->match('\S') + 1
+ bnr->getbufoneline(symbolTable[mid].outlineLine)->match('\S') + 1
prop_add(symbolTable[mid].outlineLine, col,
{bufnr: bnr, type: 'LspOutlineHighlight',
length: symbolTable[mid].name->len()})
bnr->bufload()
endif
- var text: string = bnr->getbufline(range.start.line + 1)[0]
var lnum = range.start.line + 1
+ var text: string = bnr->getbufoneline(lnum)
menuItems->add($'{lnum}: {text}')
endfor
if !bnr->bufloaded()
bnr->bufload()
endif
- var text: string = bnr->getbufline(range.start.line + 1)[0]->trim("\t ", 1)
+ var text: string = bnr->getbufoneline(range.start.line + 1)->trim("\t ", 1)
qflist->add({filename: fname,
lnum: range.start.line + 1,
col: util.GetLineByteFromPos(bnr, range.start) + 1,
# lines.
var dellastline: bool = false
if start_line == 0 && bnr->getbufinfo()[0].linecount == 1 &&
- bnr->getbufline(1)[0] == ''
+ bnr->getbufoneline(1) == ''
dellastline = true
endif
assert_equal([1, 5], [line('.'), col('.')])
var ids = popup_list()
assert_equal(1, ids->len())
- assert_match('Incompatible pointer to integer', getbufline(ids[0]->winbufnr(), 1, '$')[0])
+ assert_match('Incompatible pointer to integer', getbufoneline(ids[0]->winbufnr(), 1, '$'))
popup_clear()
cursor(1, 6)
:LspDiagHere
assert_equal([1, 9], [line('.'), col('.')])
ids = popup_list()
assert_equal(1, ids->len())
- assert_match('Initializer element is not', getbufline(ids[0]->winbufnr(), 1, '$')[0])
+ assert_match('Initializer element is not', getbufoneline(ids[0]->winbufnr(), 1, '$'))
popup_clear()
# Line without diagnostics