Skip to content

Fix audoindent including "\v", escape "\v" for rendering - #648

Merged
ima1zumi merged 1 commit into
ruby:masterfrom
tompng:autoindent_nonspace_fix
Apr 3, 2024
Merged

ima1zumi merged 1 commit into
ruby:masterfrom
tompng:autoindent_nonspace_fix

Conversation

@tompng

@tompng tompng commented Mar 19, 2024

Copy link
Copy Markdown
Member

Fixes #625
line.lstrip removes "\v" "\t" " " and more spaces. If there are "\v" or "\t", byte_position calculation was wrong.

Change for modify_lines:
Reline::Unicode.calculate_width calculates width of "\v" as 2. Default output modifying logic should return two-width character for "\v".

@ima1zumi ima1zumi added the bug Something isn't working label Mar 25, 2024

@ima1zumi ima1zumi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🌟

@ima1zumi
ima1zumi merged commit 9c51c57 into ruby:master Apr 3, 2024
@tompng
tompng deleted the autoindent_nonspace_fix branch April 3, 2024 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reline crash with C-v C-k and any alphabet

2 participants