Ctrl+C is not working after Ctrl+O and exiting editor
Platform e.g. macOS, Windows 10, ... Windows 10 Version 10.0.19045 Build 19045
Terminal software e.g. gnome-terminal, Apple Terminal.app, ... wezterm 20240203-110809-5046fc22
I type in a command line, then I press Ctrl+O. This opens up $env.EDITOR, which is nvim in my case. I exit nvim but I don't want to run the command, I would like to cancel it with Ctrl+C but nothing happens. I have to delete the command to empty the line the press enter.
Steps to reproduce
- $env.EDITOR = nvim
- type 'ls'
- type Ctrl+O
- quit nvim
- type Ctrl+C
Screenshots/Screencaptures
Very helpful if the display doesn't seem to work
I can't reproduce the problem on macos
I don't have real linux to try it, on WSL I cannot reproduce. However, on WSL nushell behaves strange: every key I type scrolls the screen buffer up one line.
If you're using wezterm on windows you probably need to disable osc133 in the config file.
disabling osc133 fixes auto scrolling, however my original issue on windows still exists :(
What version of Nushell and Neovim are you using?
nu: 0.100.0 neovim: NVIM v0.10.2 Build type: Release LuaJIT 2.1.1713484068
I can reproduce with helix on windows 11 (windows terminal). It seems to interrupt the next command run as well
| key | value |
|---|---|
| version | 0.106.1 |
| major | 0 |
| minor | 106 |
| patch | 1 |
| branch | |
| commit_hash | 682d593d3f53e5337dceedf98c9603a698af6a64 |
| build_os | windows-x86_64 |
| build_target | x86_64-pc-windows-msvc |
| rust_version | rustc 1.86.0 (05f9846f8 2025-03-31) |
| rust_channel | 1.86.0-x86_64-pc-windows-msvc |
| cargo_version | cargo 1.86.0 (adf9b6ad1 2025-02-28) |
| build_time | 2025-07-29 21:02:38 +00:00 |
| build_rust_channel | release |
| allocator | standard |
| features | default, plugin, rustls-tls, sqlite, trash-support |
| installed_plugins | |
| experimental_options | example=false, reorder-cell-paths=false |
| helix_version | helix 25.01.1 (e7ac2fcd) |