1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-23 23:34:12 +03:00

Fix populating the stderr file, strip the coordinates of the error from it

This commit is contained in:
Frank LENORMAND 2015-12-15 11:13:04 +03:00
parent fee06e8889
commit bc3d04f111

View File

@ -36,7 +36,7 @@ main() {
exec gg
}
hook global RuntimeError .+ %{
nop %sh{echo '\$kak_hook_param' > stderr}
nop %sh{echo \"\$kak_hook_param\" > stderr}
quit!
}
exec '$(cat cmd | sed -e s/\'/\\\\\'/g)'
@ -85,8 +85,11 @@ main() {
color=red
number_failures=$(($number_failures + 1))
fi
elif [ -s error -a ! $(cmp -s error stderr) ]; then
color=yellow
else
sed -ri 's/^[0-9]+:[0-9]+: //g' stderr
if [ -s error ] && ! cmp -s error stderr; then
color=yellow
fi
fi
echo "$indent$name" | colorize $color normal