mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
Merge branch '3735_mcedit_search_error_messages'
* 3735_mcedit_search_error_messages: Ticket #3735: mcedit: show backwards-search error messages.
This commit is contained in:
commit
74cf8f4bee
@ -868,8 +868,9 @@ editcmd_find (edit_search_status_msg_t * esm, gsize * len)
|
|||||||
if (ok && edit->search->normal_offset == search_start)
|
if (ok && edit->search->normal_offset == search_start)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
/* Abort search. */
|
/* We abort the search in case of a pattern error, or if the user aborts
|
||||||
if (!ok && edit->search->error == MC_SEARCH_E_ABORT)
|
the search. In other words: in all cases except "string not found". */
|
||||||
|
if (!ok && edit->search->error != MC_SEARCH_E_NOTFOUND)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if ((edit->search_line_type & AT_START_LINE) != 0)
|
if ((edit->search_line_type & AT_START_LINE) != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user