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

Move the copy mode cursor when you use Find on Page in copy mode

parent 153462aa
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -6779,6 +6779,13 @@ ITERM_WEAKLY_REFERENCEABLE
return _copyModeState.coord;
}
 
- (void)textViewDidSelectRangeForFindOnPage:(VT100GridCoordRange)range {
if (_copyMode) {
_copyModeState.coord = range.end;
[self.textview setNeedsDisplay:YES];
}
}
- (void)bury {
[_textview setDataSource:nil];
[_textview setDelegate:nil];
Loading
Loading
Loading
Loading
@@ -189,6 +189,7 @@ typedef NS_ENUM(NSInteger, PTYTextViewSelectionExtensionUnit) {
 
- (BOOL)textViewCopyMode;
- (VT100GridCoord)textViewCopyModeCursorCoord;
- (void)textViewDidSelectRangeForFindOnPage:(VT100GridCoordRange)range;
 
@end
 
Loading
Loading
Loading
Loading
@@ -5471,7 +5471,7 @@ static double EuclideanDistance(NSPoint p1, NSPoint p2) {
if (!wrapped) {
[self setNeedsDisplay:YES];
}
[_delegate textViewDidSelectRangeForFindOnPage:range];
}
 
- (void)findOnPageSaveFindContextAbsPos {
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