diff --git a/snippy b/snippy index b6b95c4..637eb04 100755 --- a/snippy +++ b/snippy @@ -392,7 +392,7 @@ run() { xdotool key ctrl+v sleep "$focus_wait" move_cursor "Up" $cursor_line_position else - xdotool key ctrl+shift+v + xdotool key ctrl+shift+v sleep "$focus_wait" if is_vim; then move_cursor "Up" $cursor_line_position fi @@ -400,6 +400,9 @@ run() { move_cursor "Left" $cursor_position + # We need a little pause to handle the time to have the content of tmpfile pasted if is_gui + sleep "$focus_wait" + # Restore current clipboard echo -ne "$current_clipboard" | xsel --clipboard --input fi