Line up the wrapped lines of a quote #340
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "worktree-text-editor-verbeteren"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The second line of a wrapped quote sat 19.2px to the right of the first, and the first line jumped by that same amount the moment the caret left it.
NLDD reserves the width of the
>withpadding-leftand pulls the first line back over it with a negativetext-indent, so the marker hangs in a gutter. We hide that marker, so the pull-back has nothing to hang and only the first visual row moves left. Dropping the pull-back where the marker is hidden, while keeping the reserved padding, puts every row where the revealed state already put the text.Measured on the built bundle, x of each visual row of a wrapping quote line:
So the wrapped row lines up, and the jump on caret entry/exit is gone too.
!importantis load-bearing here: NLDD writes the indent as an inline style, and author!importantis the one thing that outranks it. The view plugin now rebuilds onselectionSetas well, because the caret decides whether the marker is on screen.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.