1 parent 433adf1 commit 08462b6Copy full SHA for 08462b6
1 file changed
UI.hs
@@ -279,11 +279,9 @@ renderModal st (h, w) mkr = do
279
hoffset = max 0 $ (w - mw) `div` 2
280
vislines = (h - 5) `min` length modal'
281
voffset = ((h - vislines) `div` 2) `max` 4
282
- Curses.wMove Curses.stdScr voffset hoffset
283
- for_ (take vislines modal') \t -> do
+ for_ (zip [voffset..] $ take vislines modal') \ (y, t) -> do
+ Curses.wMove Curses.stdScr y hoffset
284
drawSegment $ Seg st.uiStyle.modals (toWidth mw t)
285
- (y', _) <- Curses.getYX Curses.stdScr
286
- Curses.wMove Curses.stdScr (y'+1) hoffset
287
288
-- | Choose modal to render based on state.
289
renderModals :: HState -> (Int, Int) -> IO ()
0 commit comments