mc/lib
Slava Zanko b375236b53 Ticket #2544: search dialog trim spaces
What steps will reproduce the problem?

 * View some text (log) file (F3), or edit (F4).
 * Open search dialog (F7).
 * Enter string starting with space and ending with space (I used " ERROR " without quotes), press Enter
 * Press F7 to open search dialog again.

What is the expected output?
 * Original string in search dialog (" ERROR " without quotes)

What do you see instead?
 * "ERROR " (without leading space!)

What solution?
 * In function mc_config_set_string_raw() use g_key_file_set_string() instead of g_key_file_set_value()
 * change src/learn.c for handle new behavior
 * write some tests for new behavior

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-05-31 18:50:31 +03:00
..
event Added manual for events (Russian and English). 2011-03-21 23:55:53 +02:00
filehighlight Remove backlinks from lib to src - move global variables(used in lib) to mc_global structure (see lib/global.c) 2011-03-21 23:55:50 +02:00
keybind Moved filemanager-related stuff to src/filemanager directory 2010-11-24 10:51:32 +03:00
mcconfig Ticket #2544: search dialog trim spaces 2011-05-31 18:50:31 +03:00
search Moved charsets.[ch] from src to lib directory 2010-11-24 10:51:31 +03:00
skin Remove backlinks from lib to src - move global variables(used in lib) to mc_global structure (see lib/global.c) 2011-03-21 23:55:50 +02:00
strutil (str_choose_str_functions): small fix. 2011-04-13 13:37:46 +04:00
tests Ticket #2544: search dialog trim spaces 2011-05-31 18:50:31 +03:00
tty Moved mc_refresh() to lib/widget 2011-03-21 23:55:52 +02:00
vfs Check whether VFS provides an open_archive() method. 2011-04-12 12:53:49 +04:00
widget Ticket #2459: if active panel changed type from file listing to info, inactive panel is not become active. 2011-05-04 17:07:25 +04:00
Makefile.am Added test for checking if library is independ to $(topsrcdir)/src 2011-03-21 23:55:53 +02:00
charsets.c Remove backlinks from lib to src - move global variables(used in lib) to mc_global structure (see lib/global.c) 2011-03-21 23:55:50 +02:00
charsets.h Remove backlinks from lib to src - move global variables(used in lib) to mc_global structure (see lib/global.c) 2011-03-21 23:55:50 +02:00
event-types.h Added events for handle parent_call_string() and parent_call() 2011-03-21 23:55:52 +02:00
event.h Prepare to initialize application events. 2011-03-21 11:46:41 +02:00
filehighlight.h Lib: removed includes to "src" directory 2011-03-21 23:55:52 +02:00
fileloc.h Changed engine of external macros execution 2011-03-03 20:48:30 +00:00
fs.h Ticket #2516: Fix build failure on DragonFly BSD 2011-04-07 13:32:40 +04:00
glibcompat.c Code indentation in lib directory 2010-11-24 10:27:20 +03:00
glibcompat.h Code indentation in lib directory 2010-11-24 10:27:20 +03:00
global.c Lib: removed includes to "src" directory 2011-03-21 23:55:52 +02:00
global.h Lib: removed includes to "src" directory 2011-03-21 23:55:52 +02:00
hook.c Moved hooks from lib/util.[ch] to new files lib/hook.[ch] 2010-11-24 10:27:46 +03:00
hook.h Moved hooks from lib/util.[ch] to new files lib/hook.[ch] 2010-11-24 10:27:46 +03:00
keybind.c Change hardcoded definitions of default keymap. 2011-03-20 19:26:08 +03:00
keybind.h Symbolic names of keymap sections are defined. 2011-03-20 19:26:08 +03:00
lock.c VFS structure changes: 2011-03-21 11:48:26 +02:00
lock.h Code indentation in lib directory 2010-11-24 10:27:20 +03:00
logging.c Added environment variable MC_LOG_ENABLE for specify if logging is enabled 2011-01-20 17:38:27 +02:00
logging.h Added new function mc_always_log() for logging on early bootstrap stages 2011-01-20 17:38:27 +02:00
mcconfig.h Allow remove key with empty value from target config. 2011-03-20 19:26:08 +03:00
search.h Clean up some empty lines. 2010-11-24 10:27:46 +03:00
skin.h fail back to standard skin if 256-colors skin used on non256 colors terminal 2011-01-24 15:46:10 +02:00
strescape.h Code indentation in lib directory 2010-11-24 10:27:20 +03:00
strutil.h Optimization of str_msg_term_size(). 2010-11-24 10:51:30 +03:00
timefmt.c Moved time related stuff from lib/util.[ch] into lib/timefmt.[ch]. 2010-11-24 10:27:47 +03:00
timefmt.h Moved time related stuff from lib/util.[ch] into lib/timefmt.[ch]. 2010-11-24 10:27:47 +03:00
unixcompat.h Code indentation in lib directory 2010-11-24 10:27:20 +03:00
util.c Move check_for_default() function from lib/util.c to src/util.c 2011-03-21 23:55:51 +02:00
util.h Lib: removed includes to "src" directory 2011-03-21 23:55:52 +02:00
utilunix.c Lib: removed includes to "src" directory 2011-03-21 23:55:52 +02:00
utilunix.h Lib: removed includes to "src" directory 2011-03-21 23:55:52 +02:00
widget.h Moved filemanager-related stuff to src/filemanager directory 2010-11-24 10:51:32 +03:00