Mercurial > vim
diff src/testdir/test_cmdline.vim @ 32260:8f77a43f8aac v9.0.1461
patch 9.0.1461: ruler not drawn correctly when using 'rulerformat'
Commit: https://github.com/vim/vim/commit/fc8a601c3251c0388a88c1235b18c529385f7196
Author: Sean Dewar <seandewar@users.noreply.github.com>
Date: Mon Apr 17 16:41:20 2023 +0100
patch 9.0.1461: ruler not drawn correctly when using 'rulerformat'
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 17 Apr 2023 17:45:06 +0200 |
parents | 6ababf71c1b1 |
children | 0a0b9371957f |
line wrap: on
line diff
--- 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