Christian wrote:
> On Sa, 04 Mai 2019, Bram Moolenaar wrote:
>
> > Patch 8.1.1270
> > Problem: Cannot see current match position.
> > Solution: Show "3/44" when using the "n" command and "S" is not in
> > 'shortmess'. (Christian Brabandt, closes #4317)
> > Files: runtime/doc/options.txt, runtime/doc/pattern.txt,
> > src/option.c,
> > src/option.h, src/search.c, src/testdir/Make_all.mak,
> > src/testdir/test_search_stat.vim
>
> I noticed one problem. I usually have n mapped to nzv and noticed that
> after a search wrap, the count and matches are no longer displayed. I
> think this happens, because the search_stat function uses the
> `SEARCH_PEEK` flag and aborts once it notices that there are more
> characters comming from a mapping. Don't ask me, why this does not
> happen the first time :(
>
> So here is a patch with a test, note the test won't probably not fail
> currently, but I figured it should be added nonetheless.
It doesn't fail because char_avail() is only called every 64 lines.
The test needs to have the matches furthere apart.
It will make mapped commands slower, but having the info show up
inconsistently is worse. E.g. when "n" is mapped then "?" does show the
info and "n" does not.
--
So when I saw the post to comp.editors, I rushed over to the FTP site to
grab it. So I yank apart the tarball, light x candles, where x= the
vim version multiplied by the md5sum of the source divided by the MAC of
my NIC (8A3FA78155A8A1D346C3C4A), put on black robes, dim the lights,
wave a dead chicken over the hard drive, and summon the power of GNU GCC
with the magic words "make config ; make!".
[Jason Spence, compiling Vim 5.0]
/// 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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/201905071929.x47JTRvE032691%40masaka.moolenaar.net.
For more options, visit https://groups.google.com/d/optout.