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

Add a flag to show block boundaries for issue 6207

parent be6ca896
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -31,6 +31,7 @@
 
#import "BackgroundThread.h"
#import "DebugLogging.h"
#import "iTermAdvancedSettingsModel.h"
#import "LineBlock.h"
#import "RegexKitLite.h"
 
Loading
Loading
@@ -443,6 +444,7 @@ static int RawNumLines(LineBuffer* buffer, int width) {
int length;
int eol;
screen_char_t continuation;
const int requestedLine = line;
screen_char_t* p = [block getWrappedLineWithWrapWidth:width
lineNum:&line
lineLength:&length
Loading
Loading
@@ -455,6 +457,15 @@ static int RawNumLines(LineBuffer* buffer, int width) {
NSAssert(length <= width, @"Length too long");
memcpy((char*) buffer, (char*) p, length * sizeof(screen_char_t));
[self extendContinuation:continuation inBuffer:buffer ofLength:length toWidth:width];
if (requestedLine == 0 && [iTermAdvancedSettingsModel showBlockBoundaries]) {
for (int i = 0; i < width; i++) {
buffer[i].code = 'X';
buffer[i].complexChar = NO;
buffer[i].image = NO;
buffer[i].urlCode = 0;
}
}
return eol;
}
}
Loading
Loading
Loading
Loading
@@ -198,5 +198,6 @@
+ (BOOL)disableCustomBoxDrawing;
+ (BOOL)useExperimentalFontMetrics;
+ (BOOL)supportREPCode;
+ (BOOL)showBlockBoundaries;
 
@end
Loading
Loading
@@ -292,4 +292,7 @@ DEFINE_BOOL(supportREPCode, YES, @"Experimental Features: Enable support for REP
#else
DEFINE_BOOL(supportREPCode, NO, @"Experimental Features: Enable support for REP (Repeat previous character) escape sequence?");
#endif
DEFINE_BOOL(showBlockBoundaries, NO, @"Debugging: Show line buffer block boundaries (issue 6207)");
@end
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