This commit is contained in:
2024-11-26 23:01:17 +00:00
parent f64dc86a30
commit 9534698a24
3 changed files with 1 additions and 12 deletions
+1 -8
View File
@@ -90,12 +90,6 @@ drawCursorAt mi lis ldps width curs = fromMaybe mempty $ do
width
(_siHeight selit)
getLDPWidth :: ListDisplayParams -> Int -> Int -> IM.IntMap (SelectionSection a) -> Int
getLDPWidth ldps i j sss = case _ldpWidth ldps of
FixedSelectionWidth x -> x
-- UseMaxSelectionItemWidth -> a
UseItemWidth -> fromMaybe 0 $ sss ^? ix i . ssItems . ix j . siWidth
drawListYoff :: Int -> [Picture] -> Picture
drawListYoff = drawListYgapScaleYoff 0 1
@@ -119,7 +113,6 @@ selSecDrawCursorAt ldp curs sss (i, j) = fold $ do
yint <- selSecYint i j sss
sindent <- sss ^? ix i . ssIndent
si <- sss ^? ix i . ssItems . ix j
let xsize = getLDPWidth ldp i j sss
return $
listCursorChooseBorderScale
(ldp ^. ldpVerticalGap)
@@ -128,7 +121,7 @@ selSecDrawCursorAt ldp curs sss (i, j) = fold $ do
yint
(_siOffX si + sindent)
(_siColor si)
xsize
(_siWidth si)
(_siHeight si)
selSecDrawCursor ::