diff options
| author | Sean Dewar <seandewar@users.noreply.github.com> | 2023-04-17 17:32:32 +0100 |
|---|---|---|
| committer | Sean Dewar <seandewar@users.noreply.github.com> | 2023-04-17 18:38:31 +0100 |
| commit | 7095f8ff9d9ce3519abe34a3da4c8f4bdc3fc865 (patch) | |
| tree | b5dbcc244f5ae81581cbc77cd6d9309717dba9e3 /test/old/testdir | |
| parent | 9e5f9c25d9955f8c0ab7de874cf3a40fc077458b (diff) | |
| download | rneovim-7095f8ff9d9ce3519abe34a3da4c8f4bdc3fc865.tar.gz rneovim-7095f8ff9d9ce3519abe34a3da4c8f4bdc3fc865.tar.bz2 rneovim-7095f8ff9d9ce3519abe34a3da4c8f4bdc3fc865.zip | |
vim-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 vim/vim#12246)
https://github.com/vim/vim/commit/fc8a601c3251c0388a88c1235b18c529385f7196
This issue was made apparent after neovim/neovim@0f1e2b6, as `showmode()` calls
`win_redr_ruler()` with `curwin` now if it's floating, rather than the last
window if there's no statusline (which usually already shares its right side
with that of the editor).
Co-authored-by: Sean Dewar <seandewar@users.noreply.github.com>
Diffstat (limited to 'test/old/testdir')
| -rw-r--r-- | test/old/testdir/test_cmdline.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/old/testdir/test_cmdline.vim b/test/old/testdir/test_cmdline.vim index 0c6464ae80..9d506a66c0 100644 --- a/test/old/testdir/test_cmdline.vim +++ b/test/old/testdir/test_cmdline.vim @@ -3599,4 +3599,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 |