Ticket #1776: 0001-added-select-opt-saving-patch.patch

File 0001-added-select-opt-saving-patch.patch, 1.4 KB (added by angel_il, 9 years ago)

from Jaroslav Safka

  • src/cmd.c

    From 553fb5a77278691720b01b40785922607253bba4 Mon Sep 17 00:00:00 2001
    From: kenny <kenny@tpol.lan>
    Date: Sun, 1 Nov 2009 14:26:55 +0100
    Subject: [PATCH] added select opt saving patch
    
    ---
     src/cmd.c   |    2 +-
     src/setup.c |    1 +
     src/setup.h |    2 ++
     3 files changed, 4 insertions(+), 1 deletions(-)
    
    diff --git a/src/cmd.c b/src/cmd.c
    index d23cc67..0dda06b 100644
    a b typedef enum { 
    110110    SELECT_SHELL_PATTERNS = 1 << 2 
    111111} select_flags_t; 
    112112 
    113 static select_flags_t select_flags = SELECT_MATCH_CASE | SELECT_SHELL_PATTERNS; 
     113int select_flags = SELECT_MATCH_CASE | SELECT_SHELL_PATTERNS; 
    114114 
    115115int 
    116116view_file_at_line (const char *filename, int plain_view, int internal, 
  • src/setup.c

    diff --git a/src/setup.c b/src/setup.c
    index ef45ff5..6660119 100644
    a b static const struct { 
    229229    { "auto_fill_mkdir_name", &auto_fill_mkdir_name }, 
    230230    { "reverse_files_only", &reverse_files_only }, 
    231231    { "copymove_persistent_attr", &setup_copymove_persistent_attr }, 
     232    { "select_flags", &select_flags }, 
    232233    { 0, 0 } 
    233234}; 
    234235 
  • src/setup.h

    diff --git a/src/setup.h b/src/setup.h
    index 8d1e8dd..adf0ce2 100644
    a b extern int verbose; 
    3535 
    3636extern int mouse_close_dialog; 
    3737extern int reverse_files_only; 
     38extern int select_flags; 
     39 
    3840 
    3941extern int setup_copymove_persistent_attr; 
    4042void setup_save_config_show_error(const char *filename, GError **error);