Skip to content

Commit ddb7e93

Browse files
committed
trim() is not necessary
1 parent a77667e commit ddb7e93

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lua/scrollview.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3841,8 +3841,8 @@ if api.nvim_create_autocmd ~= nil then
38413841
return
38423842
end
38433843
local cmdline = fn.getcmdline()
3844-
cmdline = cmdline:gsub('^[^%a]*', '') -- remove the leading range
3845-
cmdline = vim.trim(cmdline)
3844+
-- Remove the leading non-alphabetic characters (range and spaces).
3845+
cmdline = cmdline:gsub('^[^%a]*', '')
38463846
if cmdline == 'fo' or cmdline:match('^fol') ~= nil then
38473847
refresh_impl_async()
38483848
end

0 commit comments

Comments
 (0)