Skip to content

Instantly share code, notes, and snippets.

@anddam
Created October 25, 2019 13:18
Show Gist options
  • Save anddam/408666f3fb3deb31f1038d072c9c2b5d to your computer and use it in GitHub Desktop.
Save anddam/408666f3fb3deb31f1038d072c9c2b5d to your computer and use it in GitHub Desktop.
:sts double free or corruption (!prev)
Aborted
$
vis:command_register("sts", function(argv, force, win, selection, range)
if vis.win.strip_trailing_spaces then
vis:command("x/a/ c/FOO/")
vis:info("Line trailing spaces trimmed.")
-- vis:info("vis.win.strip_trailing_spaces bool value: " .. tostring(vis.win.strip_trailing_spaces))
end
return true;
end, "Strip line trailing spaces"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment