Skip to content

Commit b1eb37a

Browse files
committed
Delay typing-out on macOS for 250ms, hopefully fixing 'avocado' on CI
1 parent 8874330 commit b1eb37a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

efck/output.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,12 @@ def _type_macos(text):
119119
tell application "System Events"
120120
keystroke "v" using command down
121121
key code 124 -- right arrow clears the selection
122-
delay 0.15
122+
delay 0.2
123123
end tell
124124
set the clipboard to prev_contents
125125
'''
126126
text = text.replace('"', '\\"')
127-
proc = subprocess.run(['sh', '-c', f"sleep .2 && nohup osascript -e '{_OSASCRIPT.format(text)}' & disown"])
127+
proc = subprocess.run(['sh', '-c', f"sleep .25 && nohup osascript -e '{_OSASCRIPT.format(text)}' & disown"])
128128
return proc.returncode
129129

130130

0 commit comments

Comments
 (0)