Skip to content

Avoid showing tldr buffer in multiple windows - #44

Open
ErikPrantare wants to merge 1 commit into
kuanyui:masterfrom
ErikPrantare:master
Open

Avoid showing tldr buffer in multiple windows#44
ErikPrantare wants to merge 1 commit into
kuanyui:masterfrom
ErikPrantare:master

Conversation

@ErikPrantare

@ErikPrantare ErikPrantare commented Apr 22, 2026

Copy link
Copy Markdown

with-temp-buffer-window changed the buffer of the selected window,
making the switch-to-buffer-other-window in effect show the buffer
twice.

The switch-to-buffer-other-window also meant that if the tldr buffer
was in the selected window, it would still display it in another
window.

This pull request fixes that issue by only displaying the buffer once
and doing it with pop-to-buffer, which will reuse a window if it
already displays the buffer.

with-temp-buffer-window changed the buffer of the current window,
making the switch-to-buffer-other-window in effect show the buffer
twice.

The switch-to-buffer-other-window also meant that if the tldr buffer
was in the selected window, it would still display it in another
window.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant