reedline icon indicating copy to clipboard operation
reedline copied to clipboard

Ctrl+C is not working after Ctrl+O and exiting editor

Open szevzol opened this issue 1 year ago • 7 comments

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

  1. $env.EDITOR = nvim
  2. type 'ls'
  3. type Ctrl+O
  4. quit nvim
  5. type Ctrl+C

Screenshots/Screencaptures

Very helpful if the display doesn't seem to work

szevzol avatar Nov 29 '24 11:11 szevzol

I can't reproduce the problem on macos

fdncred avatar Nov 29 '24 14:11 fdncred

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.

szevzol avatar Nov 29 '24 14:11 szevzol

If you're using wezterm on windows you probably need to disable osc133 in the config file.

fdncred avatar Nov 29 '24 14:11 fdncred

disabling osc133 fixes auto scrolling, however my original issue on windows still exists :(

szevzol avatar Nov 29 '24 15:11 szevzol

What version of Nushell and Neovim are you using?

sholderbach avatar Nov 29 '24 16:11 sholderbach

nu: 0.100.0 neovim: NVIM v0.10.2 Build type: Release LuaJIT 2.1.1713484068

szevzol avatar Nov 29 '24 16:11 szevzol

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)

Ecorous avatar Aug 07 '25 15:08 Ecorous