Ticket #3495: 3495-Use-INPUT_LAST_TEXT-for-a-few-more-input-boxes.patch

File 3495-Use-INPUT_LAST_TEXT-for-a-few-more-input-boxes.patch, 1.6 KB (added by mooffie, 9 years ago)
  • src/editor/editcmd.c

    From 604c837c3d55b17b7e02353df7458d572ce71255 Mon Sep 17 00:00:00 2001
    From: Mooffie <mooffie@gmail.com>
    Date: Wed, 1 Jul 2015 14:22:56 +0300
    Subject: [PATCH] Use INPUT_LAST_TEXT for a few more input boxes.
    
    ---
     src/editor/editcmd.c  | 2 +-
     src/filemanager/cmd.c | 2 +-
     2 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/src/editor/editcmd.c b/src/editor/editcmd.c
    index ea9f49f..fe0f268 100644
    a b edit_ext_cmd (WEdit * edit) 
    32193219 
    32203220    exp = 
    32213221        input_dialog (_("Paste output of external command"), 
    3222                       _("Enter shell command(s):"), MC_HISTORY_EDIT_PASTE_EXTCMD, NULL, 
     3222                      _("Enter shell command(s):"), MC_HISTORY_EDIT_PASTE_EXTCMD, INPUT_LAST_TEXT, 
    32233223                      INPUT_COMPLETE_FILENAMES | INPUT_COMPLETE_VARIABLES | INPUT_COMPLETE_USERNAMES 
    32243224                      | INPUT_COMPLETE_HOSTNAMES | INPUT_COMPLETE_CD | INPUT_COMPLETE_COMMANDS | 
    32253225                      INPUT_COMPLETE_SHELL_ESC); 
  • src/filemanager/cmd.c

    diff --git a/src/filemanager/cmd.c b/src/filemanager/cmd.c
    index d824c3f..697587f 100644
    a b nice_cd (const char *text, const char *xtext, const char *help, 
    427427        return; 
    428428 
    429429    machine = 
    430         input_dialog_help (text, xtext, help, history_name, "", strip_password, 
     430        input_dialog_help (text, xtext, help, history_name, INPUT_LAST_TEXT, strip_password, 
    431431                           INPUT_COMPLETE_FILENAMES | INPUT_COMPLETE_CD | INPUT_COMPLETE_HOSTNAMES | 
    432432                           INPUT_COMPLETE_USERNAMES); 
    433433    if (machine == NULL)