mirror of https://github.com/helix-editor/helix
use max_line_width + 1 during softwrap to account for newline char
Helix softwrap implementation always wraps lines so that the newline character doesn't get cut off so he line wraps one chars earlier then in other editors. This is necessary, because newline chars are always selecatble in helix and must never be hidden. However That means that `max_line_width` currently wraps one char earlier than expected. The typical definition of line width does not include the newline character and other helix commands like `:reflow` also don't count the newline character here. This commit makes softwrap use `max_line_width + 1` instead of `max_line_width` to correct the impedance missmatch.pull/5813/head
parent
30412366be
commit
dcfa4a63c6
Loading…
Reference in New Issue