mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
Exit with 2 ^C in 2 seconds
This commit is contained in:
parent
842ea95de2
commit
d6a4b24306
1 changed files with 1 additions and 1 deletions
|
@ -403,7 +403,7 @@ class Coder:
|
|||
def keyboard_interrupt(self):
|
||||
now = time.time()
|
||||
|
||||
thresh = 3 # seconds
|
||||
thresh = 2 # seconds
|
||||
if self.last_keyboard_interrupt and now - self.last_keyboard_interrupt < thresh:
|
||||
self.io.tool_error("\n\n^C KeyboardInterrupt")
|
||||
sys.exit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue