From 6e39e8371a9c196fccf2dd5b332eb757c352f93a Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 31 Jan 2017 22:42:43 +0000 Subject: [PATCH] Improve POSIX sed compatibility in lint.kak Fixes #1072 --- rc/base/lint.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/base/lint.kak b/rc/base/lint.kak index ce3b420e..223f46fb 100644 --- a/rc/base/lint.kak +++ b/rc/base/lint.kak @@ -61,7 +61,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