Yasuhiro Matsumoto wrote:
> please check. I checked this on older vim and newer repository.
>
> 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 Tue Jul 22 11:19:54 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_view = winsaveview()
> call cursor(c_lnum, c_col - before)
> endif
>
> @@ -148,7 +148,7 @@
> endtry
>
> if before > 0
> - call setpos('.', save_cursor)
> + call winrestview(save_view)
> endif
>
> " If a match is found setup match highlighting.
I used a test for getcurpos(), so that we keep the more efficient way if
it's available.
--
If you don't get everything you want, think of
everything you didn't get and don't want.
/// 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.