Sfoglia il codice sorgente

Remove `status-utf8` for tmux 2.2+

The options have been removed because UTF-8 support is enabled by
default if the system supports it.
Weiyi Lou 9 anni fa
parent
commit
fbceedc13e
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      tmux/tmuxcolours.conf
  2. 1 1
      vim/autoload/plug.vim

+ 1 - 1
tmux/tmuxcolours.conf

@@ -4,7 +4,6 @@ source-file ~/dotfiles/tmux/tmuxcolors-256.conf
 
 # Default status line options.
 set-option -g status on
-set-option -g status-utf8 on
 set-option -g status-interval 2
 set-option -g status-bg colour234
 set-option -g status-fg colour231
@@ -27,4 +26,5 @@ set-option -g status-right-length 90
 set-option -g status-right '#[fg=colour233]#[fg=colour166,bg=colour233] %H:%M #[fg=colour233,bg=colour166]%d/%m/%y #(rainbarf --remaining --rgb --width 10)'
 
 
+if-shell '[[ $(version-compare $(tmux -V | sed "s/[tmux ]//g") 2.1) -le 0 ]]' 'set-option -g status-utf8 on'
 if-shell '[[ $(version-compare $(tmux -V | sed "s/[tmux ]//g") 2.1) -ge 0 ]]' 'source-file ~/dotfiles/tmux/tmuxcolours2.conf'

+ 1 - 1
vim/autoload/plug.vim

@@ -251,7 +251,7 @@ function! plug#end()
 
   for [cmd, names] in items(lod.cmd)
     execute printf(
-    \ 'command! -nargs=* -range -bang %s call s:lod_cmd(%s, "<bang>", <line1>, <line2>, <q-args>, %s)',
+    \ 'command! -nargs=* -range -bang -complete=file %s call s:lod_cmd(%s, "<bang>", <line1>, <line2>, <q-args>, %s)',
     \ cmd, string(cmd), string(names))
   endfor