-
Notifications
You must be signed in to change notification settings - Fork 132
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
Terminal output newline when pasting or resizing terminal #151
Comments
Hi @pcr910303, Could you give us the value for:
Also could you try with Ping That's might be a Mac-related issue @rafaelrinaldi @schrodincat |
~
❯ echo $pure_version
2.1.1
~
❯ fish --version
fish, version 3.0.2-608-g05b9c078
This problem persisted from at least fish 2.7. (I'm currently using a HEAD version for CJK language issues.) |
@edouard-lopez it's definitely happening for me too, but I'm not sure this is Mac-related issue |
It's cross-platform I reproduce the issue for copy/paste and resize only for the first prompt. Here is some debug information that might help.
|
@faho is this related to binding mode? (see fish-shell/fish-shell#3481) |
What is probably happening is that fish reprints prompt on terminal resize, but we are only erasing current line before printing the prompt. As a result, the second line of the prompt gets updated, but the first one is not. Can we even erase the previous line of the terminal? If so, the first thing on my mind would be to test for a previously executed command to determine if it was |
@schrodincat Well, if it’s that case on every window resize that should happen, However that only happens on the first prompt: On second or third prompt, everything works as expected. Sent with GitHawk |
Working on it |
@pcr910303 the issue is fixed in 2.1.2, please update |
@schrodincat Great! Can confirm it is fixed :-) Sent with GitHawk |
@jgierer12 it's a different issue. Can you elaborate a bit more, what OS, terminal emulator and |
OS: Manjaro Linux x86_64 (Kernel: 5.0.1-1-MANJARO) I bound Ctrl + C to |
@schrodincat I can confirm this on Arch with Terminix, VS Code's integrated terminal, Gnome Terminal, and Guake running fish 3.0.2. It's happened with this theme as long as I can remember. |
@edouard-lopez do you have same issues on your Linux setup? It seems to be Linux specific, as I'm not experiencing this on macOS. |
Initial issue is solved. However, I can reproduce @jgierer12's one, I'm creating a new issue. |
When I open a terminal emulator window and paste anything in it (agnostic to the terminal emulator, e.g. Terminal.app, iTerm2, Alacritty) or resize it, the path indicator is redrawn in the second line(not on the first), and the prompt is redrawn in the third line(not on the second).
Here's a gif(23MB) -> It gets expired after 7 days, so please ping me if it's expired :-)
The text was updated successfully, but these errors were encountered: