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
Buffer's text is gone after spawning a new window in swaywm #24272
Comments
Can you try the development version?
|
Hello @justinmk ! Thank you for such a quick reply! I appreciate it. I installed through the aur :version
NVIM v0.10.0-dev-638+g4e34ca8ae7
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3 Please see the video below: cute-OGrHx_2.mp4The issue doesn't immediately appear for the first spawn but it shows up on the second spawn of new terminal. I'll provide a minimal config to see if the same issue exists. Thank you again! |
I tried the minimal config fzf-lua#quickstart and the issue is not showing up: cute-mZDpj_2.mp4I guess it's one of my plugins causing this issue. I'll investigate and provide further comment. Thank you! |
I updated today with the version being |
? |
@justinmk Please see the video: cute-PAyCZ_2.mp4Apologies for my mistake: I didn't test it thoroughly enough. Some remarks:
After switching the nightly (currently on I'll not close the issue again until I'm sure it's fixed. Sorry again! |
tl;dr: it's my It took me days to figure it out. It's not # very tenacious bug: causing terminal redraw issue
ranger_cd() {
echo
temp_file="$(mktemp -t "ranger_cd.XXXXXXXXXX")"
ranger --choosedir="$temp_file" -- "${@:-$PWD}" <"$TTY"
if chosen_dir="$(cat -- "$temp_file")" && [ -n "$chosen_dir" ] && [ "$chosen_dir" != "$PWD" ]; then
cd -- "$chosen_dir" || exit
fi
zle reset-prompt
}
zle -N ranger_cd
bindkey '^F' ranger_cd Whenever I use the above function to launch I've been using the above function for a long time, but suddenly it's causing this bug. I have no idea why. If, of the rare chance that someone is having the same problem as me, I'm now using the following substitute: function r() {
tempfile="$(mktemp -t tmp.XXXXXX)"
ranger --choosedir="$tempfile" "${@:-$(pwd)}"
test -f "$tempfile" && if [ "$(cat -- "$tempfile")" != "$(echo -n "$(pwd)")" ]; then
cd -- "$(cat "$tempfile")" || return
fi
}
bindkey -s "^F" "r\n" Apologies for the trouble and noise. It's not neovim issue. I switched back to the stable release and the issue never re-surfaced after using the above function. Thanks guys! |
Problem
Hello there. Hope you're doing well. Thank you for checking out this bug issue of mine. I appreciate it.
A picture is worth a thousand words so please see the following video:
cute-WHGMy_2.mp4
Enter
key is not responding, i.e., pressingEnter
has no effectAnother video showing the key
Enter
has no response. The terminal isfoot
, showing it's not the terminal issue:cute-ppgzw_2.mp4
What I Have Tried
:resize
fixed it (the Enter key doesn't work butC-j
(acts as Enter in the terminal) works)System info:
Any input is much appreciated. Thank you.
Steps to reproduce
please see above video description
Expected behavior
buffer's text is not gone and enter key works
Neovim version (nvim -v)
NVIM v0.9.1
Vim (not Nvim) behaves the same?
no, VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Jun 14 2023 00:27:53)
Operating system/version
Linux 6.1.37-1-lts
Terminal name/version
kitty 0.28.1
$TERM environment variable
tmux-256color
Installation
aur
The text was updated successfully, but these errors were encountered: