On Wed, 2007-01-03 at 10:20, Pavel Tsekov wrote:
> On Tue, 2007-01-02 at 17:40, Reynir Stefansson wrote:
>
> > When doing an F7 search, a highlit bracket stays lit after the search
> > moves the cursor off the opposing bracket.
> >
> > First observed in 4.6.1 with highlighting patch from 2006-12-04 (digest
> > v32n2).
> > Exists also in baselevel 4.6.1.
>
> I'll investigate. Thanks for the report!
This bug has been here for at list 8+ years :)
Please, test the attached patch.
Index: edit/edit.c
===================================================================
RCS file: /sources/mc/mc/edit/edit.c,v
retrieving revision 1.111
diff -u -p -r1.111 edit.c
--- edit/edit.c 10 Dec 2006 22:07:28 -0000 1.111
+++ edit/edit.c 3 Jan 2007 12:00:06 -0000
@@ -2600,7 +2714,7 @@ edit_execute_cmd (WEdit *edit, int comma
case CK_Replace_Again:
case CK_Complete_Word:
edit->prev_col = edit_get_col (edit);
- return;
+ break;
case CK_Up:
case CK_Up_Highlight:
case CK_Down:
@@ -2623,8 +2737,7 @@ edit_execute_cmd (WEdit *edit, int comma
case CK_Scroll_Down_Highlight:
edit->search_start = edit->curs1;
edit->found_len = 0;
- edit_find_bracket (edit);
- return;
+ break;
default:
edit->found_len = 0;
edit->prev_col = edit_get_col (edit);
_______________________________________________
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc