Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix FuzzyOpen choosing always the first match instead of selected.

  • Loading branch information...
commit c9912067f2e24ded8ceb20240c6c4e8bdec95a67 1 parent 17df198
@ethercrow authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 yi-contrib/src/Yi/FuzzyOpen.hs
View
6 yi-contrib/src/Yi/FuzzyOpen.hs
@@ -121,11 +121,9 @@ openInNewTab = openRoutine newTabE
openRoutine :: EditorM () -> BufferRef -> YiM ()
openRoutine preOpenAction bufRef = do
- chosenFile <- fmap (drop 2) $ withEditor $ withGivenBuffer0 bufRef $ do
- moveTo 0
- readLnB
+ chosenFile <- fmap (drop 2) $ withEditor $ withGivenBuffer0 bufRef readLnB
withEditor $ do
- replicateM 2 closeBufferAndWindowE
+ replicateM_ 2 closeBufferAndWindowE
preOpenAction
discard $ editFile chosenFile
Please sign in to comment.
Something went wrong with that request. Please try again.