Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Don't perform semantic highlighting in 'diff' mode

  • Loading branch information...
commit 47a223e11b469d871f8968c7f5bb7543d0f54e2c 1 parent d07a1ff
Peter Odding authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  luainspect.vim
4  luainspect.vim
... ...
@@ -1,6 +1,6 @@
1 1
 " Vim plug-in
2 2
 " Author: Peter Odding <peter@peterodding.com>
3  
-" Last Change: July 27, 2010
  3
+" Last Change: July 28, 2010
4 4
 " URL: http://peterodding.com/code/vim/lua-inspect/
5 5
 " Version: 0.1.3
6 6
 
@@ -35,7 +35,7 @@ augroup END
35 35
 " Script local functions. {{{1
36 36
 
37 37
 function! s:AutoEnable()
38  
-  if &filetype == 'lua'
  38
+  if &ft == 'lua' && !&diff
39 39
     LuaInspect
40 40
   end
41 41
 endfunction

0 notes on commit 47a223e

Please sign in to comment.
Something went wrong with that request. Please try again.