Yasuhiro Matsumoto wrote:
> OK, I'll send patch in later.
I already fixed matchparen.
On Saturday, July 19, 2014 6:00:02 AM UTC+9, Bram Moolenaar wrote:
> Yasunori Matsumoto wrote:
Sorry for bad autocompleting your name!
> > 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().
--
--
Kiss me twice. I'm schizophrenic.
/// 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.