mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 16:37:27 +00:00
Fix #6611
This commit is contained in:
parent
73b1e3b8a1
commit
bfc15cfc3f
1 changed files with 1 additions and 1 deletions
|
|
@ -752,7 +752,7 @@ func render(collection *Collection, diff_map map[string]*Patch, screen_size scre
|
|||
}
|
||||
return nil
|
||||
})
|
||||
return &LogicalLines{lines: ans[:len(ans)-1], margin_size: margin_size, columns: columns}, err
|
||||
return &LogicalLines{lines: utils.IfElse(len(ans) > 0, ans[:len(ans)-1], []*LogicalLine{}), margin_size: margin_size, columns: columns}, err
|
||||
}
|
||||
|
||||
func (self *LogicalLines) num_of_screen_lines() (ans int) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue