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

Typing f in terminal line-mode breaks command #12303

Closed
c089 opened this issue May 14, 2019 · 2 comments
Closed

Typing f in terminal line-mode breaks command #12303

c089 opened this issue May 14, 2019 · 2 comments
Labels
stale marked as a stale issue/pr (usually by a bot)

Comments

@c089
Copy link
Contributor

c089 commented May 14, 2019

Description :octocat:

Typing f while using a terminal in line-mode triggers some kind of terminal
function, breaking the command to be executed.

Reproduction guide 🪲

  • Start Emacs
  • SPC SPC ansi-term RET
  • echo abcdef RET
  • C-c C-j to switch to line-mode
  • echo abcde

Observed behaviour: 👀 💔

The first echo inputs and executes as expected, but when typing f after
switching to line-mode, the cursor jumps, and the shell state switches from:

bash-3.2$ echo abcde<CURSOR>

to:

<CURSOR>bash-3.2$ 
fecho abcde

Sometimes it seems to replace completely different text, which looks like it
might be coming from my shells history.

Note this seems independent of the shell configuration and even shell used, the
same issue I could reproduce with bash, zsh and fish without custom
configuration. It also happens with both ansi-term and term.

Expected behaviour: ❤️ 😄

echo abcdef is executed by the shell as usual.

System Info 💻

  • OS: darwin
  • Emacs: 26.1
  • Spacemacs: 0.300.0
  • Spacemacs branch: develop (rev. ada1807)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(ruby
 (elm :variables elm-format-on-save t)
 helm auto-completion better-defaults emacs-lisp git haskell html javascript markdown org ranger react semantic
 (shell :variables shell-default-height 30 shell-default-position 'bottom)
 spell-checking syntax-checking typescript version-control yaml)
  • System configuration features: NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS

Backtrace 🐾

<<BACKTRACE IF RELEVANT>>
@antonalekseev
Copy link
Contributor

It seems that evil-escape default key sequence fd triggers as (setq evil-escape-key-sequence nil) resolved the issue for me. Why does it trigger in abcdef context is a good question, especially given that evil-escape-unordered-key-sequence is nil in my configuration, as well as by default.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale marked as a stale issue/pr (usually by a bot)
Projects
None yet
Development

No branches or pull requests

2 participants