mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-11 13:50:48 -05:00
Test if case_indicator exists before setting it.
This commit is contained in:
parent
b418352d43
commit
2953e3cb1f
1 changed files with 11 additions and 7 deletions
|
@ -1151,9 +1151,11 @@ gboolean rofi_view_trigger_action ( RofiViewState *state, KeyBindingAction actio
|
|||
menu_capture_screenshot ( );
|
||||
break;
|
||||
case TOGGLE_SORT:
|
||||
config.sort = !config.sort;
|
||||
state->refilter = TRUE;
|
||||
textbox_text ( state->case_indicator, get_matching_state () );
|
||||
if ( state->case_indicator != NULL ) {
|
||||
config.sort = !config.sort;
|
||||
state->refilter = TRUE;
|
||||
textbox_text ( state->case_indicator, get_matching_state () );
|
||||
}
|
||||
break;
|
||||
case MODE_PREVIOUS:
|
||||
state->retv = MENU_PREVIOUS;
|
||||
|
@ -1168,10 +1170,12 @@ gboolean rofi_view_trigger_action ( RofiViewState *state, KeyBindingAction actio
|
|||
break;
|
||||
// Toggle case sensitivity.
|
||||
case TOGGLE_CASE_SENSITIVITY:
|
||||
config.case_sensitive = !config.case_sensitive;
|
||||
( state->selected_line ) = 0;
|
||||
state->refilter = TRUE;
|
||||
textbox_text ( state->case_indicator, get_matching_state () );
|
||||
if ( state->case_indicator != NULL ) {
|
||||
config.case_sensitive = !config.case_sensitive;
|
||||
( state->selected_line ) = 0;
|
||||
state->refilter = TRUE;
|
||||
textbox_text ( state->case_indicator, get_matching_state () );
|
||||
}
|
||||
break;
|
||||
// Special delete entry command.
|
||||
case DELETE_ENTRY:
|
||||
|
|
Loading…
Reference in a new issue