syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.64k stars 4.89k forks source link

Terminals with RPROMPT are incomatible with window resizing #7161

Closed qqldd closed 4 years ago

qqldd commented 7 years ago

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

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

(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 commented 7 years ago

Can't repro this.

qqldd commented 7 years ago

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 commented 7 years ago

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

TheBB commented 7 years ago

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.

github-actions[bot] commented 4 years ago

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!