mc/lib
Andrew Borodin 5ecf12483a Ticket #2952: search: fix zero-length substitution.
Problem:
Suppose you want to replace a substring in some file names with another,
so you do a File Rename operation with source pattern:

*OLDSTRING*

and target pattern:

\1NEWSTRING\2

If OLDSTRING occurs inside a filename, it is replaced correctly, but if
at the beginning or end of the filename, the corresponding zero-length
wildcard match is replaced by literal \1 or \2, respectively.

Expected
Wildcards that match a zero-length substring should be substituted with
an empty string.

Thanks boris<> for the original patch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-01-14 09:50:50 +03:00
..
event Make working with GError in more right way (like with exceptions). 2014-07-22 13:12:07 +04:00
filehighlight Massive use of MC_PTR_FREE macro. 2014-09-02 15:32:36 +04:00
mcconfig Massive use of MC_PTR_FREE macro. 2014-09-02 15:32:36 +04:00
search Ticket #2952: search: fix zero-length substitution. 2015-01-14 09:50:50 +03:00
skin Massive use of MC_PTR_FREE macro. 2014-09-02 15:32:36 +04:00
strutil Make working with GError in more right way (like with exceptions). 2014-07-22 13:12:07 +04:00
tty Add semicolon to the table of key code names. 2014-12-10 12:57:47 +03:00
vfs A few typofixes. 2014-09-02 15:32:36 +04:00
widget (status_msg_init): repaint screen forced to remove previous finished dialog. 2014-10-03 13:19:26 +04:00
charsets.c Fix name of FSF in all *.c files. 2014-02-28 13:33:17 +04:00
charsets.h Core, mceditor, mcviewer and mcdiffviewer code tweak and cleanup 2012-06-25 16:58:57 +04:00
event-types.h Optimization of history load. 2011-06-21 16:13:10 +04:00
event.h Event system: added addition parameter event_init_data to mc_event_del() function. 2011-06-21 16:13:10 +04:00
filehighlight.h Rename type file_entry to the file_entry_t. 2013-09-19 16:22:30 +04:00
fileloc.h Ticket #2625: mc does not preserve file mtime when copying over ssh 2011-12-12 11:51:25 +03:00
fs.h Add DIR_IS_DOT and DIR_IS_DOTDOT macros 2013-07-23 14:15:24 +04:00
glibcompat.c Ticket #3333: fix g_error_new_valist(). 2014-12-10 13:09:13 +03:00
glibcompat.h lib/glibcompat.h: add missing include of stdarg.h. 2014-12-10 13:09:13 +03:00
global.c Ticket #3247: refactoring of status_msg engine. 2014-10-03 13:19:25 +04:00
global.h Ticket #3247: refactoring of status_msg engine. 2014-10-03 13:19:25 +04:00
hook.c Fix name of FSF in all *.c files. 2014-02-28 13:33:17 +04:00
hook.h fixed doxygen documentation 2012-09-10 14:29:53 +03:00
keybind.c Ticket #3228 (select/unselect files with the same extension as the current file) 2014-09-25 15:07:55 +04:00
keybind.h Ticket #3228 (select/unselect files with the same extension as the current file) 2014-09-25 15:07:55 +04:00
lock.c (lock_extract_info): fix out-of-bound writes. 2014-07-22 13:10:41 +04:00
lock.h Changed lock_file() and unlock_file() functions 2012-03-06 11:52:30 +03:00
logging.c Fix name of FSF in all *.c files. 2014-02-28 13:33:17 +04:00
logging.h Added new function mc_always_log() for logging on early bootstrap stages 2011-01-20 17:38:27 +02:00
Makefile.am Ticket #2136: implement user-friendly interruption of long-time operations. 2014-07-22 13:40:30 +04:00
mcconfig.h (mc_config_get_string_list): clarify usage. 2014-07-22 13:12:06 +04:00
search.h Search: better support of --disable-charset 2013-09-21 13:35:56 +04:00
serialize.c (mc_config_get_groups): optimization of function itself and usage. 2014-07-22 13:12:06 +04:00
serialize.h Added ability to serialize/deserialize strings and config objects(mc_config_t) 2011-06-23 14:45:00 +03:00
skin.h Ticket #3204: As user, I want to use own default colors for viewer. 2014-05-07 23:03:33 +03:00
strescape.h Code indentation in lib directory 2010-11-24 10:27:20 +03:00
strutil.h Typo fixes. 2013-07-23 14:15:24 +04:00
timefmt.c Fix name of FSF in all *.c files. 2014-02-28 13:33:17 +04:00
timefmt.h Moved time related stuff from lib/util.[ch] into lib/timefmt.[ch]. 2010-11-24 10:27:47 +03:00
timer.c Ticket #2136: implement user-friendly interruption of long-time operations. 2014-07-22 13:40:30 +04:00
timer.h Ticket #2136: implement user-friendly interruption of long-time operations. 2014-07-22 13:40:30 +04:00
unixcompat.h Use symbolic names for standard file descriptors. 2014-02-10 16:26:17 +04:00
util.c (name_quote): refactoring 2014-12-10 12:57:47 +03:00
util.h (name_quote): refactoring 2014-12-10 12:57:47 +03:00
utilunix.c Ticket #2966: fix view of broken manpages. 2014-09-27 20:24:12 +04:00
utilunix.h Lib: removed includes to "src" directory 2011-03-21 23:55:52 +02:00
widget.h Rename Dlg_head to WDialog. 2012-11-19 21:42:47 +04:00