We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a77667e commit ddb7e93Copy full SHA for ddb7e93
1 file changed
lua/scrollview.lua
@@ -3841,8 +3841,8 @@ if api.nvim_create_autocmd ~= nil then
3841
return
3842
end
3843
local cmdline = fn.getcmdline()
3844
- cmdline = cmdline:gsub('^[^%a]*', '') -- remove the leading range
3845
- cmdline = vim.trim(cmdline)
+ -- Remove the leading non-alphabetic characters (range and spaces).
+ cmdline = cmdline:gsub('^[^%a]*', '')
3846
if cmdline == 'fo' or cmdline:match('^fol') ~= nil then
3847
refresh_impl_async()
3848
0 commit comments