Fix dropping items creating indexes outside of filter

This commit is contained in:
2023-02-17 13:27:05 +00:00
parent 7e04deed43
commit 30ce713534
3 changed files with 44 additions and 68 deletions
+1 -11
View File
@@ -23,7 +23,7 @@ import Dodge.Data.World
updateDisplayInventory :: World -> Configuration -> SelectionSections () -> SelectionSections ()
updateDisplayInventory w cfig sss = case cr ^? crManipulation . manObject of
Just (InInventory SortInventory) -> sss
{ _sssSections = updateSections availablelines ((-1),0) [filtinv,filtclose,invx ,youx, closex]
{ _sssSections = updateSections availablelines (-1,0) [filtinv,filtclose,invx ,youx, closex]
, _sssSelPos = Just (-1)
}
Just (InInventory (SelItem i _)) -> sss
@@ -136,16 +136,6 @@ updateSection mspos sis' availablelines ss = ss
}
where
sis = sis'
-- case _ssRegex ss of
-- Regex str -> IM.insert (-1) (f str) $ IM.filter (regexList str . _siPictures) sis'
-- _ -> sis'
-- f str = SelectionRegex
-- { _siPictures = ["FILTER: " ++ str]
-- , _siHeight = 1
-- , _siIsSelectable = True
-- , _siColor = white
-- , _siOffX = 0
-- }
oldoffset = ss ^. ssOffset
scurs = do
csel <- mspos