From 0c309724a500d1301718e8b4341fcca618e6cc2d Mon Sep 17 00:00:00 2001 From: kenny Date: Sun, 1 Nov 2009 14:26:55 +0100 Subject: [PATCH] Ticket #1776: save flags of select/unselet file group. Signed-off-by: Andrew Borodin --- src/cmd.c | 2 +- src/setup.c | 1 + src/setup.h | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cmd.c b/src/cmd.c index d23cc678b..0dda06b01 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -110,7 +110,7 @@ typedef enum { SELECT_SHELL_PATTERNS = 1 << 2 } select_flags_t; -static select_flags_t select_flags = SELECT_MATCH_CASE | SELECT_SHELL_PATTERNS; +int select_flags = SELECT_MATCH_CASE | SELECT_SHELL_PATTERNS; int view_file_at_line (const char *filename, int plain_view, int internal, diff --git a/src/setup.c b/src/setup.c index 3e633157c..720fb5170 100644 --- a/src/setup.c +++ b/src/setup.c @@ -230,6 +230,7 @@ static const struct { { "auto_fill_mkdir_name", &auto_fill_mkdir_name }, { "reverse_files_only", &reverse_files_only }, { "copymove_persistent_attr", &setup_copymove_persistent_attr }, + { "select_flags", &select_flags }, { 0, 0 } }; diff --git a/src/setup.h b/src/setup.h index 8d1e8dd2c..adf0ce27d 100644 --- a/src/setup.h +++ b/src/setup.h @@ -35,6 +35,8 @@ extern int verbose; extern int mouse_close_dialog; extern int reverse_files_only; +extern int select_flags; + extern int setup_copymove_persistent_attr; void setup_save_config_show_error(const char *filename, GError **error);