Allow for equip/unequip with single left click

This commit is contained in:
2023-05-15 12:11:15 +01:00
parent ddb72690b1
commit 05bc7c6655
2 changed files with 16 additions and 12 deletions
+1 -2
View File
@@ -163,8 +163,7 @@ drawRBOptions cfig w = fromMaybe mempty $ do
maybetopborder 0 curpos = listCursorChooseBorderScale 0 1 [North] curpos 0 white 7 1
maybetopborder _ _ = mempty
maybebottomborder a b curpos
| a == b - 1 =
listCursorChooseBorderScale 0 1 [South] curpos 0 white 7 1
| a == b - 1 = listCursorChooseBorderScale 0 1 [South] curpos 0 white 7 1
| otherwise = mempty
otheritem j = fromMaybe "" $ do
itm <- you w ^? crInv . ix j