Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't perform semantic highlighting in 'diff' mode

  • Loading branch information...
commit 47a223e11b469d871f8968c7f5bb7543d0f54e2c 1 parent d07a1ff
@xolox authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 luainspect.vim
View
4 luainspect.vim
@@ -1,6 +1,6 @@
" Vim plug-in
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: July 27, 2010
+" Last Change: July 28, 2010
" URL: http://peterodding.com/code/vim/lua-inspect/
" Version: 0.1.3
@@ -35,7 +35,7 @@ augroup END
" Script local functions. {{{1
function! s:AutoEnable()
- if &filetype == 'lua'
+ if &ft == 'lua' && !&diff
LuaInspect
end
endfunction
Please sign in to comment.
Something went wrong with that request. Please try again.