1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

Fix one-off pasting text in rofi.

This commit is contained in:
Dave Davenport 2015-03-19 20:01:52 +01:00
parent 9530f195d1
commit 21144aef17
2 changed files with 2 additions and 1 deletions

View file

@ -7,6 +7,7 @@
- Add Ctrl(Shift)Tab to switch modi's.
- Auto size number of columns based on available columns.
- Better way to determine font height.
- One-off when pasting text.
Cleanup:
- Do not lug argc,argv around everywhere.

View file

@ -916,7 +916,7 @@ static void menu_paste ( MenuState *state, XSelectionEvent *xse )
}
// Insert string move cursor.
textbox_insert ( state->text, state->text->cursor, text );
textbox_cursor ( state->text, state->text->cursor + dl - 1 );
textbox_cursor ( state->text, state->text->cursor + dl );
// Force a redraw and refiltering of the text.
state->update = TRUE;
state->refilter = TRUE;