Merge remote-tracking branch 'casimir/patch-2'

This commit is contained in:
Maxime Coste 2016-10-29 11:30:12 +01:00
commit 2a1a9d9aad

View File

@ -59,7 +59,7 @@ def lint -docstring 'Parse the current buffer with a linter' %{
}
def -hidden lint-show %{ %sh{
desc=$(printf '%s\n' "$kak_opt_lint_errors" | sed -ne "/^$kak_cursor_line,.*/ { s/^[[:digit:]]\+,[[:digit:]]\+,//g; s/'/\\\\'/g; p }")
desc=$(printf '%s\n' "$kak_opt_lint_errors" | sed -ne "/^$kak_cursor_line,.*/ { s/^[[:digit:]]\+,[[:digit:]]\+,//g; s/'/\\\\'/g; p; }")
if [ -n "$desc" ]; then
printf '%s\n' "info -anchor $kak_cursor_line.$kak_cursor_column '$desc'"
fi