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
|
||||
showStart "vpop" (show num)
|
||||
removeView v
|
||||
vs <- drop (num - 1) . filter (sameparentbranch v)
|
||||
(oldvs, vs) <- splitAt (num - 1) . filter (sameparentbranch v)
|
||||
<$> recentViews
|
||||
mapM_ removeView oldvs
|
||||
case vs of
|
||||
(oldv:_) -> next $ next $ do
|
||||
showOutput
|
||||
|
|
Loading…
Add table
Reference in a new issue