mirror of
https://github.com/jtdaugherty/brick.git
synced 2024-12-04 17:36:43 +03:00
Merge pull request #118 from Arguggi/master
List: bugfix: correctly update selected index in listInsert
This commit is contained in:
commit
d97dc97cb0
@ -202,7 +202,7 @@ listInsert pos e l =
|
||||
es = l^.listElementsL
|
||||
newSel = case l^.listSelectedL of
|
||||
Nothing -> 0
|
||||
Just s -> if safePos < s
|
||||
Just s -> if safePos <= s
|
||||
then s + 1
|
||||
else s
|
||||
(front, back) = V.splitAt safePos es
|
||||
|
Loading…
Reference in New Issue
Block a user