diff options
author | Dave Davenport <qball@gmpclient.org> | 2020-04-16 12:50:34 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2020-04-16 12:50:34 +0200 |
commit | 11e5646a96b203ae306c9a20e3ec2413c61bd4f0 (patch) | |
tree | aa7cfa016f8b33473c9ac8ef45dd96a7476f9cb2 /source/rofi.c | |
parent | 626fd1be334adb5b668984be5d1312f9aa326d20 (diff) |
First working demo.
Diffstat (limited to 'source/rofi.c')
-rw-r--r-- | source/rofi.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/rofi.c b/source/rofi.c index 5afa10da..156a9697 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -214,6 +214,16 @@ void process_result ( RofiViewState *state ) MenuReturn mretv = rofi_view_get_return_value ( state ); char *input = g_strdup ( rofi_view_get_user_input ( state ) ); ModeMode retv = mode_result ( sw, mretv, &input, selected_line ); + { + if ( state->text ){ + if ( input == NULL ) { + textbox_text ( state->text, "" ); + } else if ( strcmp ( rofi_view_get_user_input ( state ), input ) != 0 ) { + textbox_text ( state->text, input ); + textbox_cursor_end ( state->text ); + } + } + } g_free ( input ); ModeMode mode = curr_switcher; |