commit | edbc1e5950efd0049570bd915d882690de396a1c | [log] [tgz] |
---|---|---|
author | Benno Schulenberg <bensberg@justemail.net> | Sat Dec 24 12:09:47 2016 +0100 |
committer | Benno Schulenberg <bensberg@justemail.net> | Sat Dec 24 12:22:17 2016 +0100 |
tree | 9029433b3a2104816122181def5b8f74428e651f | |
parent | dc18746cbdf601f8e4d28113c95896236412f16b [diff] |
text: avoid a crash when a spell-checked line has gotten shorter 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.