[PATCH] backward searching off-by-one indexing error
Jindrich Novy
jnovy at redhat.com
Tue Oct 4 15:25:08 UTC 2005
Hello mc-devel,
there's an error while backward searching in mcview.
To reproduce:
1) echo -e "foo\nbar\nbar\n" > /tmp/sample.tmp
2) mcedit /tmp/sample.tmp
3) regexp search by '/' -> type "bar"
4) press 'n' for the next occurence
5) backward search '?' and press enter ("bar" is prefilled)
Results:
You see that the line on the top of the screen is shrunk (one character
is missing).
Reference:
http://bugzilla.redhat.com/169823
Jindrich
--
Jindrich Novy <jnovy at redhat.com>, http://people.redhat.com/jnovy/
(o_ _o)
//\ The worst evil in the world is refusal to think. //\
V_/_ _\_V
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mc-searchfix.patch
Type: text/x-patch
Size: 410 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20051004/300f6426/attachment.bin>
More information about the mc-devel
mailing list