Support \0

This commit is contained in:
QC 2015-09-20 20:05:04 +02:00
parent 3edd66ad6b
commit 023bb23bcf
2 changed files with 4 additions and 2 deletions

View File

@ -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. */

View File

@ -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;
}
}