kakoune/rc
Michael Mogenson 37ded5e400 Check if buffile is path before loading editorconfig settings
Check if buffile is a full path by checking for the beginning
'/' character in editorconfig-load command. This avoids a parsing
error from feeding a *scratch*/*debug*/*grep*/etc. buffer name to the
editorcofig command. Don't clear editorconfig hooks until after checking
for a valid bufffile path. This way, opening the *debug* buffer will
not clear the hooks from a previously parsed .editorconfig file. If
trim_trailing_whitespace is true, print the hook directly from awk. This
removes the need to save a editorcofig_trim_trailing_whitespace option.

Note: Setting the max_line_length requires a window to be created.
Therefore, a global hook to load .editorconfig settings should be:

    hook global WinCreate .* %{editorconfig-load}
2019-08-20 14:55:17 -04:00
..
detection Check if buffile is path before loading editorconfig settings 2019-08-20 14:55:17 -04:00
filetype Merge remote-tracking branch 'codesoap/makefile' 2019-08-19 22:25:18 +10:00
tools remove wrong '+' from awk regex 2019-08-12 22:18:26 +03:00
windowing Rename ModuleLoad hook to ModuleLoaded 2019-06-25 19:16:47 +02:00