File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
frontends/rioterm/src/context Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -69,13 +69,12 @@ impl<T: EventListener> Context<T> {
69
69
let has_updated = self . renderable_content . selection_range != selection_range;
70
70
71
71
if has_updated {
72
- let mut terminal = self . terminal . lock ( ) ;
73
- let display_offset = terminal. display_offset ( ) ;
74
- terminal. update_selection_damage ( selection_range, display_offset) ;
75
- drop ( terminal) ;
76
-
77
- // Mark pending update as dirty so the selection change is rendered
78
- self . renderable_content . pending_update . set_dirty ( ) ;
72
+ // Selection is a UI-level change, so we use UI damage tracking
73
+ // Use full damage for selections since they can span multiple lines
74
+ // and change frequently (during dragging)
75
+ self . renderable_content
76
+ . pending_update
77
+ . set_ui_damage ( rio_backend:: event:: TerminalDamage :: Full ) ;
79
78
}
80
79
81
80
self . renderable_content . selection_range = selection_range;
You can’t perform that action at this time.
0 commit comments