You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix cursor position for chars where Emacs char-width disagrees with terminal
Emacs' move-to-column uses char-width for column counting, which can
disagree with libghostty's wcwidth-based columns for certain characters
(e.g. box-drawing glyphs like ┃ on CJK/pgtk systems where char-width
returns 2 but the terminal treats them as single-width). This caused
the cursor to land on the wrong character.
Replace move-to-column with a new positionCursorByCell helper that
iterates the cursor row's terminal cells to compute the exact Emacs
character offset for the target column, then uses goto-char. This is
both correct (independent of char-width) and faster (avoids Elisp
display-width scanning).
Fixes#86
0 commit comments