Ticket #3203: mc-4.8.13-restore_saved_replace_string.patch

File mc-4.8.13-restore_saved_replace_string.patch, 714 bytes (added by and, 7 years ago)

restore saved replace string

  • src/editor/editcmd_dialogs.c

    fix Ticket #3203 - mcedit: replace dialog doesn't remember last entered replacement string
    
    Signed-off-by: Andreas Mohr <and@gmx.li>
    
    diff -ruN mc-4.8.13/src/editor/editcmd_dialogs.c mc-4.8.13.patch/src/editor/editcmd_dialogs.c
    old new  
    194194    if ((search_default == NULL) || (*search_default == '\0')) 
    195195        search_default = INPUT_LAST_TEXT; 
    196196 
     197    if ((replace_default == NULL) || (*replace_default == '\0')) 
     198        replace_default = INPUT_LAST_TEXT; 
     199 
    197200    list_of_types = mc_search_get_types_strings_array (&num_of_types); 
    198201 
    199202    {