File tree 1 file changed +6
-10
lines changed
1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -354,11 +354,9 @@ impl Widget for &Screen {
354
354
if self . line_index [ self . cursor ] == line. item_index {
355
355
buf. set_style ( indented_line_area, & style. selection_line ) ;
356
356
} else {
357
- for i in 0 ..height {
358
- buf[ ( SCREEN_GUTTER_COLUMN_CURSOR , line_index + i) ]
359
- . set_char ( style. selection_bar . symbol )
360
- . set_style ( & style. selection_bar ) ;
361
- }
357
+ buf[ ( SCREEN_GUTTER_COLUMN_CURSOR , line_index) ]
358
+ . set_char ( style. selection_bar . symbol )
359
+ . set_style ( & style. selection_bar ) ;
362
360
}
363
361
}
364
362
@@ -380,11 +378,9 @@ impl Widget for &Screen {
380
378
}
381
379
382
380
if self . line_index [ self . cursor ] == line. item_index {
383
- for i in 0 ..height {
384
- buf[ ( SCREEN_GUTTER_COLUMN_CURSOR , line_index + i as u16 ) ]
385
- . set_char ( style. cursor . symbol )
386
- . set_style ( & style. cursor ) ;
387
- }
381
+ buf[ ( SCREEN_GUTTER_COLUMN_CURSOR , line_index) ]
382
+ . set_char ( style. cursor . symbol )
383
+ . set_style ( & style. cursor ) ;
388
384
}
389
385
390
386
line_index += height;
You can’t perform that action at this time.
0 commit comments