summaryrefslogtreecommitdiffstats
path: root/ftplugin/latex-box/common.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2015-05-11 15:05:13 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2015-05-11 15:05:13 +0200
commit271b63d71707720ad0d35590b8cb50f8f8f43014 (patch)
tree1b71daa457afc68465f66ee2afc9a00c1380f23d /ftplugin/latex-box/common.vim
parentacd7ce59503b22ac7663fc25776efe25e266f1d4 (diff)
downloadvim-polyglot-1.13.2.tar.gz
vim-polyglot-1.13.2.zip
Updatev1.13.2
Diffstat (limited to 'ftplugin/latex-box/common.vim')
-rw-r--r--ftplugin/latex-box/common.vim7
1 files changed, 6 insertions, 1 deletions
diff --git a/ftplugin/latex-box/common.vim b/ftplugin/latex-box/common.vim
index 59cf95d6..c5451027 100644
--- a/ftplugin/latex-box/common.vim
+++ b/ftplugin/latex-box/common.vim
@@ -264,7 +264,12 @@ function! LatexBox_View(...)
if has('win32')
let cmd = '!start /b ' . cmd . ' >nul'
else
- let cmd = '!' . cmd . ' &>/dev/null &'
+ let cmd = '!' . cmd . ' '
+ if fnamemodify(&shell, ':t') ==# 'fish'
+ let cmd .= ' >/dev/null ^/dev/null &'
+ else
+ let cmd .= ' &>/dev/null &'
+ endif
endif
silent execute cmd
if !has("gui_running")