Skip to content

Commit d3d73d5

Browse files
committed
don't fish_indent in insert mode
Presumably this only happens with automatic formatting and since the cursor is moved all kinds of crazy things happen and break.
1 parent 525e2b4 commit d3d73d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/fish.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function! fish#Indent()
2020
endfunction
2121

2222
function! fish#Format()
23-
if !empty(v:char)
23+
if mode() =~# '\v^%(i|R)$'
2424
return 1
2525
else
2626
let l:command = v:lnum.','.(v:lnum+v:count-1).'!fish_indent'

0 commit comments

Comments
 (0)