Skip to content
Snippets Groups Projects
Commit 1efea8cc authored by George Nachman's avatar George Nachman
Browse files

Disable number-of-wrapped-lines cache. There's a very common crash in...

Disable number-of-wrapped-lines cache. There's a very common crash in OffsetOfWrappedLine starting in beta 6. This is the likely culprit. Issue 5980
parent 9a8b2601
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -559,7 +559,9 @@ int OffsetOfWrappedLine(screen_char_t* p, int n, int length, int width, BOOL may
}
 
int spans;
if (_mayHaveDoubleWidthCharacter) {
#warning I think the cache was causing crashes in OffsetOfWrappedLine later in this function. See if that is true in beta 8.
const BOOL useCache = NO;
if (useCache && _mayHaveDoubleWidthCharacter) {
LineBlockMetadata *metadata = &metadata_[i];
if (metadata->width_for_number_of_wrapped_lines == width &&
metadata->number_of_wrapped_lines > 0) {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment