forked from aniani/vim
patch 8.2.0007: popup menu positioned wrong with folding in two tabs
Problem: Popup menu positioned wrong with folding in two tabs. Solution: Update the cursor line height. (closes #5353)
This commit is contained in:
10
src/testdir/dumps/Test_pum_with_folds_two_tabs.dump
Normal file
10
src/testdir/dumps/Test_pum_with_folds_two_tabs.dump
Normal file
@@ -0,0 +1,10 @@
|
||||
| +8#0000001#e0e0e08|+| |[|N|o| |N|a|m|e|]| | +2#0000000#ffffff0|+| |[|N|o| |N|a|m|e|]| | +1&&@47|X+8#0000001#e0e0e08
|
||||
|"+0#0000000#ffffff0| |x| |{@2|1| @66
|
||||
|"| |a|0> |s|o|m|e| |t|e|x|t| @60
|
||||
|"| +0#0000001#e0e0e08|a|0| @12| +0#0000000#0000001| +0&#ffffff0@56
|
||||
|"| +0#0000001#ffd7ff255|a|1| @12| +0#0000000#0000001| +0&#ffffff0@56
|
||||
|"| +0#0000001#ffd7ff255|a|2| @12| +0#0000000#0000001| +0&#ffffff0@56
|
||||
|"| +0#0000001#ffd7ff255|a|3| @12| +0#0000000#a8a8a8255| +0&#ffffff0@56
|
||||
|"| +0#0000001#ffd7ff255|a|4| @12| +0#0000000#a8a8a8255| +0&#ffffff0@56
|
||||
|"| +0#0000001#ffd7ff255|a|5| @12| +0#0000000#a8a8a8255| +0&#ffffff0@56
|
||||
|-+2&&@1| |K|e|y|w|o|r|d| |c|o|m|p|l|e|t|i|o|n| |(|^|N|^|P|)| |m+0#00e0003&|a|t|c|h| |1| |o|f| |1|0| +0#0000000&@32
|
||||
@@ -1,3 +1,4 @@
|
||||
source screendump.vim
|
||||
source check.vim
|
||||
|
||||
" Test for insert expansion
|
||||
@@ -380,3 +381,26 @@ func Test_ins_completeslash()
|
||||
set completeslash=
|
||||
endfunc
|
||||
|
||||
func Test_pum_with_folds_two_tabs()
|
||||
CheckScreendump
|
||||
|
||||
let lines =<< trim END
|
||||
set fdm=marker
|
||||
call setline(1, ['" x {{{1', '" a some text'])
|
||||
call setline(3, range(&lines)->map({_, val -> '" a' .. val}))
|
||||
norm! zm
|
||||
tab sp
|
||||
call feedkeys('2Gzv', 'xt')
|
||||
call feedkeys("0fa", 'xt')
|
||||
END
|
||||
|
||||
call writefile(lines, 'Xpumscript')
|
||||
let buf = RunVimInTerminal('-S Xpumscript', #{rows: 10})
|
||||
call term_wait(buf, 100)
|
||||
call term_sendkeys(buf, "a\<C-N>")
|
||||
call VerifyScreenDump(buf, 'Test_pum_with_folds_two_tabs', {})
|
||||
|
||||
call term_sendkeys(buf, "\<Esc>")
|
||||
call StopVimInTerminal(buf)
|
||||
call delete('Xpumscript')
|
||||
endfunc
|
||||
|
||||
Reference in New Issue
Block a user