aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Odding <peter@peterodding.com>2014-06-29 19:55:41 +0200
committerPeter Odding <peter@peterodding.com>2014-06-29 19:55:41 +0200
commit107b23366136d6dcca661cae242b1899a7cc61f5 (patch)
tree0a752fa1e9bd8ce05f7dd5f0319acdd15e2ac131
parentc4feb0cd46d951d4cd9b0e03d1ec092ae4ab4bd8 (diff)
downloadvim-easytags-107b23366136d6dcca661cae242b1899a7cc61f5.tar.gz
Don't use :redraw in :HighlightTags during session loading
-rw-r--r--autoload/xolox/easytags.vim6
1 files changed, 5 insertions, 1 deletions
diff --git a/autoload/xolox/easytags.vim b/autoload/xolox/easytags.vim
index 6e38792..73d538e 100644
--- a/autoload/xolox/easytags.vim
+++ b/autoload/xolox/easytags.vim
@@ -327,7 +327,11 @@ function! xolox#easytags#highlight() " {{{2
endif
endif
endfor
- redraw
+ " Avoid flashing each highlighted buffer in front of the user when
+ " loading a session.
+ if !xolox#easytags#session_is_loading()
+ redraw
+ endif
let bufname = expand('%:p:~')
if bufname == ''
let bufname = 'unnamed buffer #' . bufnr('%')