avoid vanishing cursor when wrapped line is initially 0-width
refs #740
This commit is contained in:
1 parent
6d7f9879ac
commit
d547f45714
1 file changed
+4
-5
@@ -1052,11 +1052,10 @@ impl super::TermWindow {
|
||||
}
|
||||
}
|
||||
|
||||
if params.stable_line_idx == Some(params.cursor.y) && params.cursor.x > last_cell_idx {
|
||||
// Even though we don't have a cell for these, they still
|
||||
// hold the cursor or the selection so we need to compute
|
||||
// the colors in the usual way.
|
||||
|
||||
if params.stable_line_idx == Some(params.cursor.y)
|
||||
&& ((params.cursor.x > last_cell_idx) || cell_clusters.is_empty())
|
||||
{
|
||||
// Compute the cursor fg/bg
|
||||
let ComputeCellFgBgResult {
|
||||
fg_color: glyph_color,
|
||||
bg_color,
|
||||
|
||||
Reference in new issue
Block a user