From 023bb23bcfc2e0139d3ba042a2eb96f57622f592 Mon Sep 17 00:00:00 2001 From: QC Date: Sun, 20 Sep 2015 20:05:04 +0200 Subject: [PATCH] Support \0 --- config/config.def.c | 2 +- source/helper.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/config.def.c b/config/config.def.c index 4f25b5d6..37ab74c6 100644 --- a/config/config.def.c +++ b/config/config.def.c @@ -121,7 +121,7 @@ Settings config = { /** Sidebar mode, show the switchers */ .sidebar_mode = FALSE, /** Lazy mode setting */ - .lazy_filter_limit = 15000, + .lazy_filter_limit = 15000, /** auto select */ .auto_select = FALSE, /** Parse /etc/hosts file in ssh view. */ diff --git a/source/helper.c b/source/helper.c index 2011d7e0..94b90a28 100644 --- a/source/helper.c +++ b/source/helper.c @@ -280,6 +280,9 @@ char helper_parse_char ( const char *arg ) else if ( arg[1] == '\\' ) { retv = '\\'; } + else if ( arg[1] == '0' ) { + retv = '\0'; + } } else if ( len > 2 && arg[0] == '\\' && arg[1] == 'x' ) { retv = (char) strtol ( &arg[2], NULL, 16 ); @@ -475,4 +478,3 @@ void config_sanity_check ( ) config.menu_bg_alt = config.menu_bg; } } -