mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-28 01:00:28 +03:00
37ded5e400
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} |
||
---|---|---|
.. | ||
editorconfig.kak | ||
file.kak | ||
modeline.kak |