diff --git a/lua/various-textobjs/init.lua b/lua/various-textobjs/init.lua index 119a56d..3372d5d 100644 --- a/lua/various-textobjs/init.lua +++ b/lua/various-textobjs/init.lua @@ -15,7 +15,7 @@ local function argConvert(arg) if arg == false then return "outer" end if arg == true then return "inner" end if arg ~= "outer" and arg ~= "inner" then - u.notify( + u.notify( "Invalid argument for textobject, only 'outer' and 'inner' accepted. Falling back to outer textobject.", "warn" ) diff --git a/lua/various-textobjs/linewise-textobjs.lua b/lua/various-textobjs/linewise-textobjs.lua index 37f51b4..1794cb6 100644 --- a/lua/various-textobjs/linewise-textobjs.lua +++ b/lua/various-textobjs/linewise-textobjs.lua @@ -123,14 +123,14 @@ function M.mdFencedCodeBlock(scope, lookForwL) end ---lines visible in window textobj -function M.visibleInWindow() +function M.visibleInWindow() local start = fn.line("w0") local ending = fn.line("w$") setLinewiseSelection(start, ending) end -- from cursor line to last visible line in window -function M.restOfWindow() +function M.restOfWindow() local start = fn.line(".") local ending = fn.line("w$") setLinewiseSelection(start, ending)