Skip to content

Commit df3728c

Browse files
committed
Return 1 when the user cancelled
So, cancelling can be seen as a failure to the original goal, entering a character. And distinguising it from the true success case is helpful for scripting `rofimoji`, so now it return `1` when the user cancelled. Issue: #232
1 parent a2df29c commit df3728c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/picker/standalone.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def standalone(self) -> None:
2525
action, value = self.__open_main_selector_window()
2626

2727
if action == CANCEL():
28-
sys.exit()
28+
sys.exit(1)
2929
elif action != DEFAULT():
3030
self.args.actions = [action]
3131

0 commit comments

Comments
 (0)