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

Terminals with RPROMPT are incomatible with window resizing #7161

Closed
qqldd opened this issue Sep 21, 2016 · 5 comments
Closed

Terminals with RPROMPT are incomatible with window resizing #7161

qqldd opened this issue Sep 21, 2016 · 5 comments
Labels
- Bug tracker - Should report upstream stale marked as a stale issue/pr (usually by a bot)

Comments

@qqldd
Copy link

qqldd commented Sep 21, 2016

Description

With golden-ratio-mode enabled, the shell mode behaves abnormally. The mouse click on shell buffer will generate extra shell prompts. (Like type RET multiple times)

Reproduction guide

  • Start Emacs
  • Enable golden-ratio-mode
  • M-x shell
  • Left-Click shell buffer

Observed behaviour:
Shell buffer generated multiple shell prompts. Like I typed RET multiple times. Sometime generated random characters like 8wd�

Expected behaviour:
The shell should just be focused withl left-click.

System Info

  • OS: gnu/linux
  • Emacs: 25.1.1
  • Spacemacs: 0.105.22
  • Spacemacs branch: master (rev. 9f9faa4)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: emacs
  • Completion: helm
  • Layers:
(emacs-lisp c-c   shell-scripts python csv shell sql markdown latex javascript html git perforce auto-completion gtags irony-mode semantic colors themes-megapack sr-speedbar org eyebrowse ibuffer)

Backtrace

BACKTRACE IF RELEVANT

Additions

The same behavior can also be reproduced on OSX with Emacs 25.1.1 and 24.5

@TheBB
Copy link
Collaborator

TheBB commented Sep 21, 2016

Can't repro this.

@qqldd
Copy link
Author

qqldd commented Sep 21, 2016

It turns out that it is because of oh-my-zsh double line prompt theme problem. For example, 'candy' theme in oh-my-zsh has the issue. But all one line prompt themes do not have the issue.

@TheBB
Copy link
Collaborator

TheBB commented Sep 22, 2016

I have a double line prompt and can't repro.

@TheBB
Copy link
Collaborator

TheBB commented Sep 22, 2016

Okay, it's not the two lines, it's the RPROMPT you need.

Then this is easily reproducible with stock Emacs, so you should report there, not here.

To be precise, it happens when resizing, it has nothing to do with golden ratio mode.

@TheBB TheBB changed the title Golden-ratio-mode and shell-mode compatibility issue Terminals with RPROMPT are incomatible with window resizing Sep 22, 2016
@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 Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- Bug tracker - Should report upstream stale marked as a stale issue/pr (usually by a bot)
Projects
Upstream bugs
To be reported
Development

No branches or pull requests

2 participants