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

Terminal is not scrolling down to new output #21981

Open
fasterius opened this issue Jan 24, 2023 · 0 comments
Open

Terminal is not scrolling down to new output #21981

fasterius opened this issue Jan 24, 2023 · 0 comments
Labels
bug issues reporting wrong behavior terminal built-in :terminal or :shell
Milestone

Comments

@fasterius
Copy link

Describe the bug

The Neovim terminal does not show all the output of the first command that's entered into it when the terminal isn't the currently active window, it only fills the current window to its bottom without scrolling down to the latest output. The commands are successfully run, as entering back into the terminal buffer and pressing G gets one down to the bottom of the output. If one then moves back into the terminal, executes another command and moves away from the terminal buffer again it will now correctly show the bottom of the output; any subsequent long-output command will be shown as expected.

Screenshot

Steps to reproduce

nvim --clean
:vsp
:term
i
sleep 3; for n in $(seq 100); do echo $n; done
<C-\\><C-N><C-W>l

This will not scroll down to the last output, as shown in screenshot above.

<C-W>h
G
i
sleep 3; for n in $(seq 100); do echo $n; done
<C-\\><C-N><C-W>l

This will scroll down to the last output, as will any subsequent command.

Expected behavior

I would expect the latter behaviour from the very start, i.e. scrolling down to the latest output even on the first execution of the command and moving to another window.

Neovim version (nvim -v)

0.8.2 Release

Vim (not Nvim) behaves the same?

No, Vim 9.0.1151

Operating system/version

macOS 11.6.4 Big Sur

Terminal name/version

Alacritty 0.11.0 / iTerm2 3.4.18 (tested on both)

$TERM environment variable

xterm-256color

Installation

Homebrew

@fasterius fasterius added the bug issues reporting wrong behavior label Jan 24, 2023
@zeertzjq zeertzjq added the terminal built-in :terminal or :shell label Jan 24, 2023
@justinmk justinmk added this to the backlog milestone Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issues reporting wrong behavior terminal built-in :terminal or :shell
Projects
None yet
Development

No branches or pull requests

3 participants