Skip to content

Commit

Permalink
Fix cursor invalidation when line attributes are used
Browse files Browse the repository at this point in the history
  • Loading branch information
j4james committed May 10, 2024
1 parent 49e4eea commit a7cd84b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/base/renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1178,8 +1178,8 @@ void Renderer::_invalidateCurrentCursor() const
const auto view = buffer.GetSize();
const auto coord = _currentCursorOptions.coordCursor;

const auto lineRendition = buffer.GetLineRendition(coord.y);
const auto cursorWidth = _pData->IsCursorDoubleWidth() ? 2 : 1;
const auto lineRendition = _currentCursorOptions.lineRendition;
const auto cursorWidth = _currentCursorOptions.fIsDoubleWidth ? 2 : 1;

til::rect rect{ coord.x, coord.y, coord.x + cursorWidth, coord.y + 1 };
rect = BufferToScreenLine(rect, lineRendition);
Expand Down

0 comments on commit a7cd84b

Please sign in to comment.