An error occurred while fetching folder content.
text: avoid a crash when a spell-checked line has gotten shorter
Benno Schulenberg authored
When using an external spell checker or formatter, the line with
the cursor might become shorter, which might result in the stored
cursor position being beyond the end-of-line.  So, when restoring
the x position, make sure to limit it to the length of the line.

This fixes https://savannah.gnu.org/bugs/?49923.
edbc1e59
Name Last commit Last update