fix column right-click action

This commit is contained in:
Ivan Mahonin 2023-09-25 20:00:20 +07:00 committed by manongjohn
parent 37337aeaf4
commit 4f1ce85ca6

View file

@ -1453,7 +1453,9 @@ public:
TXshColumn *column = xsh->getColumn(i);
if (!column) continue;
/*- Skip if target is in selected column mode and not selected -*/
bool isSelected = selection && selection->isColumnSelected(i);
bool isSelected = selection && !selection->isEmpty()
? selection->isColumnSelected(i)
: cc == i;
if (m_target == TARGET_SELECTED && !isSelected) continue;
/*-