mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-11-21 04:46:29 +03:00
Nothing in lazygit calls View.Line or View.Word; they came with the original gocui code and have never been used. They are also the only callers of realPosition. That function ignores the inclusion gutter when it maps a view position to the buffer. On top of that, Word uses the returned column as an index into the line's cells, and this goes wrong for wide characters. Remove them, together with realPosition and the indexFunc helper. This leaves contentX as the only code that maps a column of the view to a column of the content. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>