Skip to content

Commit 1f01a37

Browse files
committed
don't look for funced in new buffers
Fish passes an existing file so this is more correct.
1 parent 4043298 commit 1f01a37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ftdetect/fish.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
autocmd BufRead,BufNewFile *.fish setfiletype fish
2-
autocmd BufRead,BufNewFile /tmp/fish_funced_*.fish ?\C^end\>?-1 | if getline('.') ==# '' | execute "normal! i\<C-t>" | endif | startinsert!
2+
autocmd BufRead /tmp/fish_funced_*.fish ?\C^end\>?-1 | if getline('.') ==# '' | execute "normal! i\<C-t>" | endif | startinsert!
33
autocmd BufRead,BufNewFile ~/.config/fish/fish_{read_,}history setfiletype yaml
44
autocmd BufRead,BufNewFile ~/.config/fish/fishd.* setlocal readonly

0 commit comments

Comments
 (0)