From 0ba1ab04f05f2945beec5b75e08a7b935fb38d4a Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 12 Jul 2013 13:13:54 +0100 Subject: [PATCH] cpp.kak: wrap trailing whitespace cleanup hook in a try catch --- src/rc/cpp.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rc/cpp.kak b/src/rc/cpp.kak index a1aab8b6..d93a8888 100644 --- a/src/rc/cpp.kak +++ b/src/rc/cpp.kak @@ -22,7 +22,7 @@ hook global WinSetOption filetype=cpp %~ addfilter -group cpp-filters regex ^(\h+)([^\n]*[^([{]\h*|$) \n \n$1 addfilter -group cpp-filters regex ^(\h*)[^\n]*[([{]\h* \n '\n$1 ' addfilter -group cpp-filters cleanup_whitespaces - hook window InsertEnd .* -id cpp-hooks %{ exec -draft s\h+$d } + hook window InsertEnd .* -id cpp-hooks %{ try %{ exec -draft s\h+$d } catch %{} } ~ hook global WinSetOption filetype=(?!cpp).* %{