|
52 | 52 | NSString *const kScreenStateNextCommandOutputStartKey = @"Output Start"; |
53 | 53 | NSString *const kScreenStateCursorVisibleKey = @"Cursor Visible"; |
54 | 54 | NSString *const kScreenStateTrackCursorLineMovementKey = @"Track Cursor Line"; |
| 55 | +NSString *const kScreenStateTrackCursorColMovementKey = @"Track Cursor Col"; |
55 | 56 | NSString *const kScreenStateLastCommandOutputRangeKey = @"Last Command Output Range"; |
56 | 57 | NSString *const kScreenStateShellIntegrationInstalledKey = @"Shell Integration Installed"; |
57 | 58 | NSString *const kScreenStateLastCommandMarkKey = @"Last Command Mark"; |
@@ -5307,6 +5308,12 @@ - (void)gridCursorDidChangeLine { |
5307 | 5308 | } |
5308 | 5309 | } |
5309 | 5310 |
|
| 5311 | +- (void)gridCursorDidChangeCol { |
| 5312 | + if (_trackCursorColMovement) { |
| 5313 | + [delegate_ screenCursorDidMoveToCol:currentGrid_.cursorX]; |
| 5314 | + } |
| 5315 | +} |
| 5316 | + |
5310 | 5317 | - (iTermUnicodeNormalization)gridUnicodeNormalizationForm { |
5311 | 5318 | return _normalization; |
5312 | 5319 | } |
@@ -5364,6 +5371,7 @@ - (NSDictionary *)contentsDictionary { |
5364 | 5371 | kScreenStateNextCommandOutputStartKey: [NSDictionary dictionaryWithGridAbsCoord:_startOfRunningCommandOutput], |
5365 | 5372 | kScreenStateCursorVisibleKey: @(_cursorVisible), |
5366 | 5373 | kScreenStateTrackCursorLineMovementKey: @(_trackCursorLineMovement), |
| 5374 | + kScreenStateTrackCursorColMovementKey: @(_trackCursorColMovement), |
5367 | 5375 | kScreenStateLastCommandOutputRangeKey: [NSDictionary dictionaryWithGridAbsCoordRange:_lastCommandOutputRange], |
5368 | 5376 | kScreenStateShellIntegrationInstalledKey: @(_shellIntegrationInstalled), |
5369 | 5377 | kScreenStateLastCommandMarkKey: _lastCommandMark.guid ?: [NSNull null], |
@@ -5478,6 +5486,7 @@ - (void)restoreFromDictionary:(NSDictionary *)dictionary |
5478 | 5486 | _startOfRunningCommandOutput = [screenState[kScreenStateNextCommandOutputStartKey] gridAbsCoord]; |
5479 | 5487 | _cursorVisible = [screenState[kScreenStateCursorVisibleKey] boolValue]; |
5480 | 5488 | _trackCursorLineMovement = [screenState[kScreenStateTrackCursorLineMovementKey] boolValue]; |
| 5489 | + _trackCursorColMovement = [screenState[kScreenStateTrackCursorColMovementKey] boolValue]; |
5481 | 5490 | _lastCommandOutputRange = [screenState[kScreenStateLastCommandOutputRangeKey] gridAbsCoordRange]; |
5482 | 5491 | _shellIntegrationInstalled = [screenState[kScreenStateShellIntegrationInstalledKey] boolValue]; |
5483 | 5492 |
|
|
0 commit comments