aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorFamiu Haque <famiuhaque@protonmail.com>2022-05-13 20:47:11 +0600
committerFamiu Haque <famiuhaque@protonmail.com>2022-05-18 09:27:08 +0600
commite1bdb2a258cbe6c5cb981acc6bac82cd9e7706fb (patch)
treed892e10e8e922e71ce822e7c6a5c41fad1dd73d1 /src/nvim/testdir
parentb9b5577d6d8e07d1e39020c8fc05f817f2e81c66 (diff)
downloadrneovim-e1bdb2a258cbe6c5cb981acc6bac82cd9e7706fb.tar.gz
rneovim-e1bdb2a258cbe6c5cb981acc6bac82cd9e7706fb.tar.bz2
rneovim-e1bdb2a258cbe6c5cb981acc6bac82cd9e7706fb.zip
feat(ui): add `'winbar'`
Adds support for a bar at the top of each window, enabled through the `'winbar'` option. Co-authored-by: Björn Linse <bjorn.linse@gmail.com>
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_cursor_func.vim5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/testdir/test_cursor_func.vim b/src/nvim/testdir/test_cursor_func.vim
index 9ba82e3b70..6c6a6290cb 100644
--- a/src/nvim/testdir/test_cursor_func.vim
+++ b/src/nvim/testdir/test_cursor_func.vim
@@ -102,10 +102,11 @@ func Test_screenpos()
bwipe!
call assert_equal({'col': 1, 'row': 1, 'endcol': 1, 'curscol': 1}, screenpos(win_getid(), 1, 1))
- " Needs WinBar
" nmenu WinBar.TEST :
- " call assert_equal({'col': 1, 'row': 2, 'endcol': 1, 'curscol': 1}, screenpos(win_getid(), 1, 1))
+ setlocal winbar=TEST
+ call assert_equal({'col': 1, 'row': 2, 'endcol': 1, 'curscol': 1}, screenpos(win_getid(), 1, 1))
" nunmenu WinBar.TEST
+ setlocal winbar&
endfunc
func Test_screenpos_number()