Ticket #2544: search dialog trim spaces
commit84cb81e50bacf4f7e1f69df066da4051cc1cdceb
authorSlava Zanko <slavazanko@gmail.com>
Tue, 31 May 2011 16:06:21 +0000 (31 19:06 +0300)
committerSlava Zanko <slavazanko@gmail.com>
Tue, 31 May 2011 16:06:21 +0000 (31 19:06 +0300)
tree099799295e3a8e345952f7ae49fd459f740e4f02
parent6a8b2e7d988a8b7d1334cdc2a29a37e81944a736
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

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
lib/mcconfig/set.c
src/learn.c