Skip to content

limit columns to line_length #2054

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

Closed
wants to merge 1 commit into from
Closed

Conversation

mstuehn
Copy link

@mstuehn mstuehn commented Mar 12, 2025

(neo)vim provides a mode "virtualedit=all" where the cursor can be placed behind the last character of the line. Limit the column to line_lenght prevents raising a ValueError

(neo)vim provides a mode "virtualedit=all" where the cursor can be placed behind the last character of the line. Limit the column to line_lenght prevents raising a ValueError
@davidhalter
Copy link
Owner

This is unfortunately not fixing the issue, it's simply circumventing it. If I were to merge this, things like not will complete to NotImplemented instead of having all global completions. Goto will also act weird and so on. This is unfortunately not that simple. As I said before, this is unfortunately not a simple change.

Plus, this also needs tests.

@mstuehn
Copy link
Author

mstuehn commented Mar 12, 2025

Ah, ok. The patch worked ok for me, but i have to admit, that i do not fully understand the implications.
Sorry for the noise; unfortunately i do not have the capabilities to provide a proper solution.

@mstuehn mstuehn closed this Mar 12, 2025
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.

2 participants