Skip to content
Permalink
Browse files

Fix infinite loop in automatic word wrap for CR+LF line endings (issue

  • Loading branch information...
zufuliu committed Apr 7, 2019
1 parent 7939d21 commit fb4ce3aba90d0bbcaf751b82d0bbd07dabe9e003
Showing with 4 additions and 0 deletions.
  1. +4 −0 scintilla/src/EditView.cxx
@@ -598,6 +598,10 @@ void EditView::LayoutLine(const EditModel &model, Sci::Line line, Surface *surfa
lastGoodBreak = pos - posLineStart;
}
p = pos + cePos.widthBytes - posLineStart;
// model.pdoc->IsCrLf(pos)
if (cePos.character == '\r' && model.pdoc->CharAt(pos + 1) == '\n') {
p += 1;
}
continue;
}
} else if ((vstyle.wrapState == eWrapWord) && (ll->styles[p] != ll->styles[p - 1])) {

0 comments on commit fb4ce3a

Please sign in to comment.
You can’t perform that action at this time.