aboutsummaryrefslogtreecommitdiff
path: root/test/functional/options/mousescroll_spec.lua
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2024-03-09 15:00:41 -0700
committerJosh Rahm <joshuarahm@gmail.com>2024-03-09 15:00:41 -0700
commit7a7f497b483cd65e340064f23ed1c73425ecba0a (patch)
treed5c99ea22a1e10300d06165f8ac96df6b0dc59e1 /test/functional/options/mousescroll_spec.lua
parent1b7b916b7631ddf73c38e3a0070d64e4636cb2f3 (diff)
parentade1b12f49c3b3914c74847d791eb90ea90b56b7 (diff)
downloadrneovim-7a7f497b483cd65e340064f23ed1c73425ecba0a.tar.gz
rneovim-7a7f497b483cd65e340064f23ed1c73425ecba0a.tar.bz2
rneovim-7a7f497b483cd65e340064f23ed1c73425ecba0a.zip
Merge remote-tracking branch 'upstream/master' into aucmd_textputpost
Diffstat (limited to 'test/functional/options/mousescroll_spec.lua')
-rw-r--r--test/functional/options/mousescroll_spec.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/options/mousescroll_spec.lua b/test/functional/options/mousescroll_spec.lua
index 38a9692792..96af8987b8 100644
--- a/test/functional/options/mousescroll_spec.lua
+++ b/test/functional/options/mousescroll_spec.lua
@@ -23,11 +23,11 @@ describe("'mousescroll'", function()
local digit_expected = 'Vim(set):E5080: Digit expected: mousescroll='
local function should_fail(val, errorstr)
- eq(errorstr..val, exc_exec('set mousescroll='..val))
+ eq(errorstr .. val, exc_exec('set mousescroll=' .. val))
end
local function should_succeed(val)
- eq(0, exc_exec('set mousescroll='..val))
+ eq(0, exc_exec('set mousescroll=' .. val))
end
before_each(function()
@@ -147,15 +147,15 @@ describe("'mousescroll'", function()
command('set mousescroll=hor:1')
scroll('right')
- eq(9, screencol())
+ eq(9, screencol())
command('set mousescroll=hor:3')
scroll('right')
- eq(6, screencol())
+ eq(6, screencol())
command('set mousescroll=hor:2')
scroll('left')
- eq(8, screencol())
+ eq(8, screencol())
end
it('controls horizontal scrolling in normal mode', function()