Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- Improved sudo check.

  • Loading branch information...
commit 72ed94ef23262ba1e30111db08c4a7ecd3804e60 1 parent 809d51b
Shougo authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  doc/neocomplcache.txt
  2. +1 −1  plugin/neocomplcache.vim
2  doc/neocomplcache.txt
View
@@ -952,7 +952,7 @@ ChangeLog neocomplcache 7.0:
2012-04-10
- Improved escape filename.
-- Improved sudo check(experimental).
+- Improved sudo check.
2012-04-05
- Improved cache event.
2  plugin/neocomplcache.vim
View
@@ -32,7 +32,7 @@ elseif v:version < 702
echoerr 'neocomplcache does not work this version of Vim (' . v:version . ').'
finish
elseif $SUDO_USER != '' && $USER !=# $SUDO_USER
- \ && $USER ==# 'root' && $HOME !=# '/root'
+ \ && $HOME !=# expand('~'.$SUDO_USER)
echoerr '"sudo vim" and $HOME is not same to /root are detected.'
\.'Please use sudo.vim plugin instead of sudo command or set always_set_home in sudoers.'
finish
Please sign in to comment.
Something went wrong with that request. Please try again.