Skip to content

Commit

Permalink
More debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ychin committed Jan 6, 2025
1 parent 00211ba commit 7775c78
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/MacVim/MMVimView.m
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,13 @@ - (void)frameSizeMayHaveChanged:(BOOL)keepGUISize
[textView constrainRows:&constrained[0] columns:&constrained[1]
toSize:textViewSize];


os_log(OS_LOG_DEFAULT, "frameSizeMayHaveChanged constrained[0] <= 0: %d", constrained[0]);
NSLog(@"textView frame : %@", NSStringFromRect([textView frame]));
if (constrained[0] <= 0) {
NSLog(@"Stack trace : %@",[NSThread callStackSymbols]);
}

if (constrained[0] != textView.pendingMaxRows || constrained[1] != textView.pendingMaxColumns) {
NSData *data = [NSData dataWithBytes:constrained length:2*sizeof(int)];
int msgid = [self inLiveResize] ? LiveResizeMsgID
Expand Down

0 comments on commit 7775c78

Please sign in to comment.