Yasunori Matsumoto wrote:
> When type any key in git-commit message buffer, error occur that getcurpos()
> not found.
>
> diff -r febc041c984b runtime/plugin/matchparen.vim
> --- a/runtime/plugin/matchparen.vim Wed Jul 16 23:39:54 2014 +0200
> +++ b/runtime/plugin/matchparen.vim Fri Jul 18 20:37:44 2014 +0900
> @@ -88,7 +88,7 @@
> " Find the match. When it was just before the cursor move it there for a
> " moment.
> if before > 0
> - let save_cursor = getcurpos()
> + let save_cursor = getpos('.')
> call cursor(c_lnum, c_col - before)
> endif
getcurpos() was added in patch 7.4.313. We should check for it being
available and otherwise fall back to the old way. getpos() is not
sufficient though. Should be winsaveview() / winrestview().
--
Mushrooms always grow in damp places and so they look like umbrellas.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.