diff --git a/Changelog b/Changelog index 8bb99b4c..af452b99 100644 --- a/Changelog +++ b/Changelog @@ -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. diff --git a/source/rofi.c b/source/rofi.c index 0b6d57a0..258e5b49 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -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;