Revert "Prevent overflow beyond the end of string in form_update_line()"

This reverts commit e0efc127ff.
This commit is contained in:
Tatsuya Kinoshita
2016-12-18 00:20:06 +09:00
parent 849d1dd239
commit eba7f423fc

2
form.c
View File

@@ -388,7 +388,7 @@ form_update_line(Line *line, char **str, int spos, int epos, int width,
prop[pos] = effect | PC_ASCII;
pos++;
}
if (p < q && newline) {
if (newline) {
if (!FoldTextarea) {
while (*p && *p != '\r' && *p != '\n')
p++;