src/gui/shellwidget/shellwidget.cpp
QRect ShellWidget::neovimCursorRect() const noexcept
{
	QRect cursor{ neovimCursorTopLeft(), cellSize() };

	const Cell& cell{ contents().constValue(m_cursor_pos.y(), m_cursor_pos.x()) };
	if (cell.IsDoubleWidth()) {
		cursor.setWidth(cursor.width() * 2);
	}

	return cursor;
}
/// Get the area filled by the cursor
Get the area filled by the cursor
Get the area filled by the cursor
QRect ShellWidget::neovimCursorRect() const noexcept
{
	QRect cursor{ neovimCursorTopLeft(), cellSize() };
	const Cell& cell{ contents().constValue(m_cursor_pos.y(), m_cursor_pos.x()) };
	if (cell.IsDoubleWidth()) {
		cursor.setWidth(cursor.width() * 2);
	}
	return cursor;
}
QRect ShellWidget :: neovimCursorRect ( ) const noexcept { QRect cursor { neovimCursorTopLeft ( ) , cellSize ( ) } ; const Cell & cell { contents ( ) . constValue ( m_cursor_pos . y ( ) , m_cursor_pos . x ( ) ) } ; if ( cell . IsDoubleWidth ( ) ) { cursor . setWidth ( cursor . width ( ) * 2 ) ; } return cursor ; }
Get the area filled by the cursor
Get the area filled by the cursor