on master help sign in
use head over !!0
commita803a2ad72027de47ef6c1f1bfc053d8aeb04267 authorWillem Van Onsem <vanonsem.willem@gmail.com> dateWed 17 Feb 2021, 23:38 (6 years ago) parente886dc0
1 file changed+1−1
src/Graphics/Vty/Input/Terminfo/ANSIVT.hs+1−1
src/Graphics/Vty/Input/Terminfo/ANSIVT.hs+1−1
@@ -59,7 +59,7 @@ navKeys3 =
5959-- This encoding depends on the terminal.
6060functionKeys1 :: ClassifyMap
6161functionKeys1 =
62− let f ff nrs m = [ ("\ESC["++show n++"~",EvKey (KFun $ n-(nrs!!0)+ff) m) | n <- nrs ] in
62+ let f ff nrs m = [ ("\ESC["++show n++"~",EvKey (KFun $ n-head nrs+ff) m) | n <- nrs ] in
6363 concat [f 1 [25,26] [MShift], f 3 [28,29] [MShift], f 5 [31..34] [MShift] ]
6464
6565-- | encoding for meta plus char