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

Using Tab character as an indent aligns at the wrong char. #20

Open
voronind-com opened this issue Dec 5, 2023 · 1 comment
Open

Using Tab character as an indent aligns at the wrong char. #20

voronind-com opened this issue Dec 5, 2023 · 1 comment

Comments

@voronind-com
Copy link

Screencast.from.2023-12-05.15-50-48.webm

If you add tab as an indent, plugin aligns at the character after the one you specify.

@voronind-com
Copy link
Author

voronind-com commented Dec 5, 2023

I'm trying to create a pull request. I could narrow down the issue to the line 222 (in my case, but this should apply to other modes as well): I assume that the error comes from the fact that vim.fn.strdisplaywidth returns wrong value when tab is present, as tab is a stretched character.

edit: I'm unsure now.

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

No branches or pull requests

1 participant