aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-03-01 06:13:38 +0800
committerGitHub <noreply@github.com>2024-03-01 06:13:38 +0800
commit5d4e1693cb415e8b76749e833e28f00f14630b87 (patch)
tree76758b0fde6fd99b6980c9f9f6df142942280464 /test
parent57e5b9f4eadfda3dbcf94d8ea7e37ac61d157d9d (diff)
downloadrneovim-5d4e1693cb415e8b76749e833e28f00f14630b87.tar.gz
rneovim-5d4e1693cb415e8b76749e833e28f00f14630b87.tar.bz2
rneovim-5d4e1693cb415e8b76749e833e28f00f14630b87.zip
vim-patch:9.1.0145: v:echospace not correct when 'showcmdloc' != last (#27682)
Problem: the amount of available space (v:echospace) on the command line is not correct when showcmdloc is drawn into the statusline or tabline. Solution: only add SHOWCMD_COLS to the shown command column when 'showcmdloc' is set to last (Sam-programs) closes: vim/vim#14108 https://github.com/vim/vim/commit/062141b1a70cf5364e6983ec901282e0111745c1 Co-authored-by: Sam-programs <130783534+Sam-programs@users.noreply.github.com>
Diffstat (limited to 'test')
-rw-r--r--test/old/testdir/test_messages.vim6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/old/testdir/test_messages.vim b/test/old/testdir/test_messages.vim
index 5ebcb375b6..5979e35327 100644
--- a/test/old/testdir/test_messages.vim
+++ b/test/old/testdir/test_messages.vim
@@ -167,8 +167,12 @@ func Test_echospace()
call assert_equal(&columns - 12, v:echospace)
set showcmd ruler
call assert_equal(&columns - 29, v:echospace)
+ set showcmdloc=statusline
+ call assert_equal(&columns - 19, v:echospace)
+ set showcmdloc=tabline
+ call assert_equal(&columns - 19, v:echospace)
- set ruler& showcmd&
+ set ruler& showcmd& showcmdloc&
endfunc
func Test_warning_scroll()