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:
parent
b15d8b2493
commit
c4603aa267
3
snippy
3
snippy
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user