neovim/neovim — pull request #1613 by tarruda (2014-12-05 12:17:57+00:00)
Title: [RFC] Fix shell command output

Shell command output was broken in @8a5a8db, which refactored nvim to no longer
switch to cooked mode(linefeeds are processed differently).

Fix the problem by refactoring write_output to accept to extra arguments that
control the flushing behavior and where data will be written to: buffer or
raw editor screen.

Close #1612.