]> Sergey Matveev's repositories - st.git/commit
Remove buffering to fileio instead of calling fflush
authorRoberto E. Vargas Caballero <k0ga@shike2.com>
Wed, 12 Sep 2012 19:51:55 +0000 (21:51 +0200)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Wed, 12 Sep 2012 19:51:55 +0000 (21:51 +0200)
commitd25493587595a7bc5eb0764dad9e8de10a26a854
tree1e399c343f102eca23f2cbe97c2d33414b42bb93
parentadc463157490fa4c15cf3daf3fc9780e8d8abcb1
Remove buffering to fileio instead of calling fflush
By default text files are line buffered, and this means that -f option will
not write the line until a \n is printed. This is not very useful for
debugging, so a call to fflush was added. This patch substitute this call
(which will be done by each character painted) by the full remove of the
buffering in the file.
---
 st.c |   12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
st.c