Commit: bfac856eb3454022a1644fb48f120e303abea316
Parent: de1edf89e4f64c7bb121525afaa7c7734ae13d89
Author: Randy Palamar
Date: Sun, 14 May 2023 17:20:41 -0600
return false only on command failure
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/init.lua b/init.lua
@@ -18,11 +18,11 @@ run_actions_on_file = function(action, actions, file, modify)
local cmds = actions[vis.win.syntax]
if cmds == nil or #cmds == 0 then
vis:info(action
- .. " not defined for vis.win.syntax="
+ .. " not defined for vis.win.syntax = "
.. (vis.win.syntax or "undefined")
.. " in file "
.. (file.name or "unnamed file"))
- return false
+ return
end
-- Print this for clarity and separate different outputs in the vis:message buffer
local header = "--- " .. action .. ": "