diff options
| author | Johannes Altmanninger <aclopte@gmail.com> | 2024-11-27 11:13:35 +0100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2024-11-28 08:11:06 +1100 |
| commit | c3b01a3c9caf030a8c6f6dca56688aca57a9248e (patch) | |
| tree | 469900699338fd49d8f78bae872c752ad16b1808 /src/remote.cc | |
| parent | 658915086fc4883c45f1af98f1b37a01822e9feb (diff) | |
Add back option to scroll in stdin buffers
Commit 582c3c56b (Do not add trailing newline to non-scrolling fifo
buffers, 2024-01-28) completely forgot about stdin buffers,
breaking the ability to make them scrolling via "ge".
For example
while sleep 1; do
seq $LINES
date
done | kak
Let's fix that by adding the trailing newline back for stdin buffers.
Unlike "edit -scroll", don't scroll until the user explicitly moves
the cursor.
Diffstat (limited to 'src/remote.cc')
| -rw-r--r-- | src/remote.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/remote.cc b/src/remote.cc index 3ef2c152..f4e62419 100644 --- a/src/remote.cc +++ b/src/remote.cc @@ -806,8 +806,8 @@ private: auto env_vars = m_reader.read<HashMap<String, String, MemoryDomain::EnvVars>>(); if (auto stdin_fd = m_reader.ancillary_fd()) - create_fifo_buffer(generate_buffer_name("*stdin-{}*"), *stdin_fd, Buffer::Flags::None); - + create_fifo_buffer(generate_buffer_name("*stdin-{}*"), *stdin_fd, Buffer::Flags::None, + AutoScroll::NotInitially); auto* ui = new RemoteUI{sock, dimensions}; ClientManager::instance().create_client( std::unique_ptr<UserInterface>(ui), pid, std::move(name), |
