Permalink
Browse files

- Fixed skip auto complete error.

  • Loading branch information...
1 parent 34edf3a commit 4fa35c2d253ebc02cd9f40789bbe3e8c1278f0bc @Shougo committed Jan 1, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 autoload/neocomplcache.vim
View
4 autoload/neocomplcache.vim
@@ -1,7 +1,7 @@
"=============================================================================
" FILE: neocomplcache.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
-" Last Modified: 31 Dec 2012.
+" Last Modified: 01 Jan 2013.
" License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the
@@ -2838,7 +2838,7 @@ endfunction"}}}
function! s:is_skip_auto_complete(cur_text) "{{{
let neocomplcache = neocomplcache#get_current_neocomplcache()
- if a:cur_text == '^\s*$\|\s\+$'
+ if a:cur_text =~ '^\s*$\|\s\+$'
\ || a:cur_text == neocomplcache.old_cur_text
\ || (g:neocomplcache_lock_iminsert && &l:iminsert)
\ || (&l:formatoptions =~# '[tc]' && &l:textwidth > 0

0 comments on commit 4fa35c2

Please sign in to comment.