Skip to content

Commit cefb7bc

Browse files
committed
Fix escape character detection logic
1 parent 289352d commit cefb7bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indent/clojure.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ endfunction
7878
" of backslash characters (i.e. escaped).
7979
function! s:IsEscaped(line_str, i_char)
8080
let ln = a:line_str[: a:i_char - 1]
81-
return (strlen(ln) - strlen(trim(ln, '\', 2))) % 2
81+
return ! strlen(trim(ln, '\', 2)) % 2
8282
endfunction
8383

8484
" Used during list function indentation. Returns the position of the first

0 commit comments

Comments
 (0)