kakoune: [BUG] Backspace occasionally behaves like Delete
Version of Kakoune
v2023.08.05
Reproducer
I’m using kitty, version 0.33.1
Might have something to do with suspending and resuming (<c-z>). It does not happen in a client that has never been suspended.
Outcome
Occasionally backspace would show up as delete in the debug buffer (when the debug option has the keys flag) and behave as delete rather than backspace in any mode. The behaviour is present within anything done via this client. A typed <c-h> turns out to not be received. Any other client connected to the same server is unaffected. When I suspend the client and type something in the shell, the backspace key works.
Expectations
required text
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 24 (17 by maintainers)
@krobelus , will you open a PR for this fix?
BTW: @Abraxas-Knister , could you verify if this works for you too?
weird. Maybe print the address of
m_original_termios, maybe it changes for some reason. If that (or a spurious copy) is the problem, the fix might be:@krobelus , you are correct, c_cc[VERASE] was changed to 0 somehow. I made below patch, the two places have different c_cc[VERASE] values.
is it possible that it’s related with some copy or clone in c++?
or try gdb, see https://github.com/mawww/kakoune/wiki/hacking
did you try write_to_debug_buffer as explained in https://github.com/mawww/kakoune/issues/5155#issuecomment-2076586109 ?