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

Don't set tabstop in shell buffers (#224) #229

Merged
merged 1 commit into from
Nov 26, 2023

Conversation

cxw42
Copy link
Member

@cxw42 cxw42 commented Nov 24, 2023

:FZF opens a terminal in the same window as the current buffer, and setbufvar(tabstop) affects the cursor position in the current buffer as well as the cursor position in the terminal buffer.

To avoid that, don't set tabstop in terminal windows running shells.

Fixes #224 (at least by working around the issue)

@cxw42 cxw42 self-assigned this Nov 24, 2023
:FZF opens a terminal in the same window as the current buffer, and
setbufvar(tabstop) affects the cursor position in the current buffer
as well as the cursor position in the terminal buffer.

To avoid that, don't set tabstop in terminal windows running shells.
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.

Cursor moves back to beginning of line when exiting :FZF popup on Vim 9 (after #209)
2 participants