Slava Zanko
9c284e99c2
Fix segfault in charset confirmation dialog at start of mc.
...
When config files is unaccesible, doalig was crashed after 'Esc' pressing.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-28 13:37:40 +02:00
Andrew Borodin
9c0a8e7d3f
Fixed segfault in search in editor and viewer.
...
Modified API of search engine: return the number of search types.
This avoids the calculation of the search type count when need.
Sync editor search, editor replace and viewer searc dialogs with
new search API.
Fixed memory leak in editcmd_dialog_search_show().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-26 00:27:45 +03:00
Slava Zanko
a525546de2
Ticket #1435 (Editor search options i18n)
...
* Fix runtime translation of search types array;
* reworked function mc_search_get_types_strings_array.
Thanks to dmartina for bugreport.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-06 10:33:04 +03:00
Sergei Trofimovich
2e7808f63c
tcc build fix: fixed c99 external constants
...
Signed-off-by: Sergei Trofimovich <st@anti-virus.by>
2009-07-17 12:00:02 +03:00
Slava Zanko
786174fac8
Renamed function shell_is_char_escaped to strutils_is_char_escaped; removed function mc_search_is_char_escaped
...
* All calls of function mc_search_is_char_escaped replaced to strutils_is_char_escaped
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-06-12 10:31:59 +03:00
Slava Zanko
a0d56381e0
Search Replace now handled \U,\u,\L,\l and \E modificators.
...
Also function mc_search__regex_is_char_escaped() renamed to mc_search_is_char_escaped() and moved into global visibility scope.
2009-06-12 10:31:58 +03:00
Slava Zanko
49015842c9
Fix case insentitive search with --disable-charset configure option
...
Also, changes 'normal' search engine - now it wrapper for 'regex' search engine
because old engine don't correct work: search by 'test' success on 'test' or 'TEST'
but fail on 'Test' or 'teSt'. New 'normal' engine work correctly.
2009-05-27 12:19:23 +03:00
Mikhail S. Pobolovets
4fd6869be2
Warning fix: return discards qualifiers from pointer target type
...
search.c:312:
return discards qualifiers from pointer target type
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
2009-05-10 14:22:24 +03:00
Slava Zanko
09bc5434f6
Project builds with option --disable-charsets
2009-05-07 12:20:34 +03:00
Slava Zanko
293310f727
refactoring: rename edit/editcmd_dialog.c:editcmd_dialog__get_search_types_list to
...
to src/search/lib.c:mc_search_get_types_strings_array
2009-05-06 10:50:12 +03:00
Slava Zanko
2276e9b513
Search engine: now used regexp external engines:
...
* glib
* pcre
* POSIX regex
External engine selected automatically, if present.
2009-05-05 16:19:32 +03:00
Slava Zanko
af18cb326f
Find files: changes for usage of new search engine:
...
* Changed file search and content search
* Added regexp-search for filenames
* Added 'All charset' checkbox for file and content searches
2009-05-04 15:47:49 +03:00
Slava Zanko
ebd271feca
Search engine: change some text constants.
...
* change names of search types
* change error message about unimplemented search type
2009-04-30 14:25:42 +03:00
Slava Zanko
74c8c748b3
internal editor: change search/replace dialogs:
...
replace dialog:
* removed 'replace order' field
* removed 'scanf' and 'regex' chackboxes
* added selectbox element for choise type of search
* confirm replace and 'replace all' now radiobuttons
search dialog:
* removed 'replace order' field
* removed 'scanf' and 'regex' chackboxes
* added selectbox element for choise type of search
2009-04-29 16:13:12 +03:00
Andrew Borodin
7ef779dcbc
src/search/lib.c (mc_search__recode_str): use symbolic constant
...
for invalid convertion descriptor.
2009-04-26 09:17:48 +04:00
Slava Zanko
94bb61742b
Search engine: move string constants from code of normal search to common code area (lib.c)
2009-04-25 16:53:05 +03:00
Slava Zanko
c2455b246c
Make search module more independ (and prepare for future mclib :) )
2009-04-25 11:09:47 +03:00