Skip to content

Commit

Permalink
Show shell command results in a minibuffer.
Browse files Browse the repository at this point in the history
Fixes #477.
  • Loading branch information
Fuuzetsu committed Dec 19, 2013
1 parent 6af70e1 commit 666b77d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions yi/src/library/Yi/Command.hs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import qualified Yi.Mode.Compilation as Compilation
import Yi.Process
import Yi.UI.Common
import qualified Yi.Mode.Interactive as Interactive
import qualified Data.Rope as R

---------------------------
-- | Changing the buffer name quite useful if you have
Expand All @@ -44,7 +43,7 @@ shellCommandV :: String -> YiM ()
shellCommandV cmd = do
(exitCode,cmdOut,cmdErr) <- liftIO $ runShellCommand cmd
case exitCode of
ExitSuccess -> withEditor $ newBufferE (Left "Shell Command Output") (R.fromString cmdOut) >> return ()
ExitSuccess -> msgEditor cmdOut
-- FIXME: here we get a string and convert it back to utf8; this indicates a possible bug.
ExitFailure _ -> msgEditor cmdErr

Expand Down

0 comments on commit 666b77d

Please sign in to comment.