From 7775c78eaa0f4b77cf9d3e2be497b0fd35112c61 Mon Sep 17 00:00:00 2001 From: Yee Cheng Chin Date: Sun, 5 Jan 2025 21:30:12 -0800 Subject: [PATCH] More debug logging --- src/MacVim/MMVimView.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/MacVim/MMVimView.m b/src/MacVim/MMVimView.m index 0ce0167c66..f7c28ad595 100644 --- a/src/MacVim/MMVimView.m +++ b/src/MacVim/MMVimView.m @@ -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