mirror of
https://github.com/davatorium/rofi.git
synced 2025-02-10 15:44:41 -05:00
Support \0
This commit is contained in:
parent
3edd66ad6b
commit
023bb23bcf
2 changed files with 4 additions and 2 deletions
|
@ -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. */
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue