Repository navigation
Measure evil-ghostel cursor moves in buffer columns - #767
Merged
Merged
Conversation
evil-ghostel-goto-input-position computed the horizontal arrow count as the target's buffer column minus the terminal column of the cursor. The renderer hides the blank cell a standalone oversized glyph claims with a zero-width space display spec, which current-column honours, so the two coordinate systems drift by one per such cell to the left of both ends. With a prompt icon the shell cursor then landed one cell off every time i, a, 0, $ and friends drove it to point. Take the start column from the renderer's published cursor position instead, so both ends are buffer columns and the hidden cells cancel. evil-ghostel--reset-cursor-point jumps straight to that position too. Closes #763.
This branch was previously deployed
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.
Fixes #763.
evil-ghostel-goto-input-positioncomputed the horizontal arrow count as the target's buffer column minus the terminal column of the cursor. The renderer hides the blank cell a standalone oversized glyph claims with a(space :width 0)display spec, whichcurrent-columnhonours, so the two coordinate systems drift by one per such cell left of both ends. With a prompt icon the shell cursor landed one cell off every timei,a,0,$and friends drove it to point.The start column now comes from the renderer's published cursor position, so both ends are buffer columns and the hidden cells cancel.
evil-ghostel--reset-cursor-pointjumps straight to that position too.Verification:
evil-ghostel-test-goto-input-position-ignores-hidden-cellfails on main (5 arrows) and passes here (4).make test-evil153/153,make -j8 allgreen.⏵ $prompt rendered from a fallback font: typing1234, ESC,i,0gave12034on main and12304here.