Skip to content
Browse files

change offset when completing once again. add vim dependency

  • Loading branch information...
1 parent 2b0e882 commit 4a2d9647399409bd51d08a165845b9604516c86b @MarcWeber committed Nov 26, 2010
Showing with 2 additions and 1 deletion.
  1. +1 −0 ensime-addon-info.txt
  2. +1 −1 vim/autoload/ensime.vim
View
1 ensime-addon-info.txt
@@ -10,6 +10,7 @@
"vim-addon-completion": {},
"vim-addon-json-encoding": {},
"vim-addon-signs": {},
+ "vim-addon-mw-utils": {},
},
"description" : "Branch making Vim talk to Ensime. Original repository is at http://github.com/aemoncannon. I hope that the changes will be merged upstream when they are more stable"
}
View
2 vim/autoload/ensime.vim
@@ -298,7 +298,7 @@ fun! ensime#Completion(findstart, base)
" and use camel case matching .. The one char is necessary to keep the
" returned list of matches small. Else filtering could be too slow
" foo. the bytepos must be the last o (?)
- let b:bytePos = b:realBytePos - (len(s:match_text) > 0 ? len(s:match_text) - 1 : 0) - (b:completion_type == 'type' ? 1 : 0)
+ let b:bytePos = b:realBytePos - (len(s:match_text) > 0 ? len(s:match_text) - 1 : 0) - (b:completion_type == 'type' ? 2 : 0)
return s:start
else
if exists('s:c.con.completions')

0 comments on commit 4a2d964

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