File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 11CHANGELOG
22=========
33
4- main
5- ----
4+ 0.0.4
5+ -----
6+
7+ - Fix out-of-bounds rendering issue
8+
9+ 0.0.3
10+ -----
611
712- Horizontal scrolling
813- Improved property rendering
Original file line number Diff line number Diff line change @@ -94,10 +94,11 @@ impl View for SourceComponent {
9494 frame. render_widget ( Paragraph :: new ( lines. clone ( ) ) . scroll ( ( scroll, app. session_view . source_scroll . 1 ) ) , rows[ 0 ] ) ;
9595
9696 for ( line_no, line_length, line) in annotations {
97+ let x_offset = rows[ 0 ] . x + ( line_length as u16 ) . saturating_sub ( app. session_view . source_scroll . 1 ) ;
9798 let area = Rect {
98- x : rows [ 0 ] . x + ( line_length as u16 ) . saturating_sub ( app . session_view . source_scroll . 1 ) ,
99+ x : x_offset ,
99100 y : ( line_no as u32 ) . saturating_sub ( scroll as u32 ) as u16 + 1 ,
100- width : rows[ 0 ] . width ,
101+ width : rows[ 0 ] . width . saturating_sub ( x_offset ) ,
101102 height : 1 ,
102103 } ;
103104
You can’t perform that action at this time.
0 commit comments