summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_cmdline.vim
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2023-04-17 16:41:20 +0100
committerBram Moolenaar <Bram@vim.org>2023-04-17 16:41:20 +0100
commitfc8a601c3251c0388a88c1235b18c529385f7196 (patch)
tree753fd75ef5f9c60a2b4d61d6adbdc97ade5ea784 /src/testdir/test_cmdline.vim
parent961b2e54bdbe1c06e4bf8ccf7a7e3deb129b45de (diff)
patch 9.0.1461: ruler not drawn correctly when using 'rulerformat'v9.0.1461
Problem: Ruler not drawn correctly when using 'rulerformat'. Solution: Adjust formatting depending on whether the ruler is drawn in the statusline or the command line. (Sean Dewar, closes #12246)
Diffstat (limited to 'src/testdir/test_cmdline.vim')
-rw-r--r--src/testdir/test_cmdline.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim
index 8b717b7c2d..9bb21bcfa9 100644
--- a/src/testdir/test_cmdline.vim
+++ b/src/testdir/test_cmdline.vim
@@ -3459,4 +3459,17 @@ func Test_setcmdline()
cunmap a
endfunc
+func Test_rulerformat_position()
+ CheckScreendump
+
+ let buf = RunVimInTerminal('', #{rows: 2, cols: 20})
+ call term_sendkeys(buf, ":set ruler rulerformat=longish\<CR>")
+ call term_sendkeys(buf, ":set laststatus=0 winwidth=1\<CR>")
+ call term_sendkeys(buf, "\<C-W>v\<C-W>|\<C-W>p")
+ call VerifyScreenDump(buf, 'Test_rulerformat_position', {})
+
+ " clean up
+ call StopVimInTerminal(buf)
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab