Display visual column width in selection#1203
Open
jscipione wants to merge 1 commit into
Open
Display visual column width in selection#1203jscipione wants to merge 1 commit into
jscipione wants to merge 1 commit into
Conversation
sorbits
force-pushed
the
master
branch
2 times, most recently
from
August 27, 2014 07:28
98e00de to
5a45023
Compare
sorbits
force-pushed
the
master
branch
3 times, most recently
from
September 27, 2016 19:49
4234188 to
09534b7
Compare
sorbits
force-pushed
the
master
branch
2 times, most recently
from
September 12, 2019 19:15
093e8eb to
d2979e2
Compare
sorbits
force-pushed
the
master
branch
2 times, most recently
from
May 26, 2021 07:46
e28f51d to
97caab6
Compare
displays tab width instead of counting hard tabs as 1 character wide. Indent position the column will display as 9 (4 * 2) + 1, before this it would display as 3 (1 * 2) + 1. Limit tab width calculation to first 4096 characters of each line.
Author
|
After all these years yes this is still a bug. The main complaint on my patch was that it would take too long to compute on long lines so I've arbitrarily limited this calculation to the first 4096 characters of a line. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
which is how TextMate 1 worked.
For example if your tab width is set to 4 and you're on the second
indent position the column will display as 9 (4 * 2) + 1, before this patch
it would display as 3 (1 * 2) + 1.