Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ctrl-C during history search quits xonsh #13

Open
eugenesvk opened this issue Feb 16, 2021 · 0 comments
Open

Ctrl-C during history search quits xonsh #13

eugenesvk opened this issue Feb 16, 2021 · 0 comments

Comments

@eugenesvk
Copy link

eugenesvk commented Feb 16, 2021

I'm used to cancelling readline history search with CtrlC
However, when I do that with your great xontrib, I instead get an error and xonsh quits
How do I fix this so that CtrlC simply returns to prompt?
Thanks!

Traceback (Windows Terminal):
  Traceback (most recent call last):
  File "C:\Python\Scripts\xonsh-script.py", line 33, in <module>
    sys.exit(load_entry_point('xonsh==0.9.26', 'console_scripts', 'xonsh')())
  File "C:\Python\lib\site-packages\xonsh\__amalgam__.py", line 22505, in main
    _failback_to_other_shells(args, err)
  File "C:\Python\lib\site-packages\xonsh\__amalgam__.py", line 22474, in _failback_to_other_shells
    raise err
  File "C:\Python\lib\site-packages\xonsh\__amalgam__.py", line 22503, in main
    sys.exit(main_xonsh(args))
  File "C:\Python\lib\site-packages\xonsh\__amalgam__.py", line 22541, in main_xonsh
    shell.shell.cmdloop()
  File "C:\Python\lib\site-packages\xonsh\ptk_shell\shell.py", line 338, in cmdloop
    line = self.singleline(auto_suggest=auto_suggest)
  File "C:\Python\lib\site-packages\xonsh\ptk_shell\shell.py", line 307, in singleline
    line = self.prompter.prompt(**prompt_args)
  File "C:\Python\lib\site-packages\prompt_toolkit\shortcuts\prompt.py", line 1013, in prompt
    return self.app.run(set_exception_handler=set_exception_handler)
  File "C:\Python\lib\site-packages\prompt_toolkit\application\application.py", line 848, in run
    return loop.run_until_complete(
  File "C:\Python\lib\asyncio\base_events.py", line 642, in run_until_complete
    return future.result()
  File "C:\Python\lib\site-packages\prompt_toolkit\application\application.py", line 650, in run_async
    assert not self._is_running, "Application is already running."
  AssertionError: Application is already running.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant