vpop N: remove skipped over views
This commit is contained in:
parent
57d7491d1f
commit
587a81e42f
1 changed files with 2 additions and 1 deletions
|
@ -30,8 +30,9 @@ start ps = go =<< currentView
|
||||||
go (Just v) = do
|
go (Just v) = do
|
||||||
showStart "vpop" (show num)
|
showStart "vpop" (show num)
|
||||||
removeView v
|
removeView v
|
||||||
vs <- drop (num - 1) . filter (sameparentbranch v)
|
(oldvs, vs) <- splitAt (num - 1) . filter (sameparentbranch v)
|
||||||
<$> recentViews
|
<$> recentViews
|
||||||
|
mapM_ removeView oldvs
|
||||||
case vs of
|
case vs of
|
||||||
(oldv:_) -> next $ next $ do
|
(oldv:_) -> next $ next $ do
|
||||||
showOutput
|
showOutput
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue