Introduced a small sleep time to allow sufficient time between the contents of tmpfile to be pasted if is_gui and restoring the previous clipboard.

This commit is contained in:
Richard Reijmers CMC 2023-02-09 17:07:38 +01:00
parent b15d8b2493
commit c4603aa267

3
snippy
View File

@ -400,6 +400,9 @@ run() {
move_cursor "Left" $cursor_position 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 # Restore current clipboard
echo -ne "$current_clipboard" | xsel --clipboard --input echo -ne "$current_clipboard" | xsel --clipboard --input
fi fi