Use buffer for reading view data
commit448ac58857b9f769f5d8ae8ccde4b9225091263a
authorJonas Fonseca <jonas.fonseca@gmail.com>
Tue, 6 May 2014 01:23:15 +0000 (5 21:23 -0400)
committerJonas Fonseca <jonas.fonseca@gmail.com>
Tue, 6 May 2014 03:30:58 +0000 (5 23:30 -0400)
tree23c96ce93cc43ec7b5b0357e2cabb4e0431a4ec0
parentcb548cdc98bc1d66fb41989ed3fd1ebc02aa2a11
Use buffer for reading view data

Change the view update code to pass the buffer from io_get() to the view
read methods and use the buffer when extracting view data via
io_memchr(). This fixes views that use NUL-terminated input to work
correctly when data is encoding, for example when "gui.encoding" is set.

Fixes #287
17 files changed:
NEWS.adoc
include/tig/io.h
include/tig/main.h
include/tig/pager.h
include/tig/view.h
src/blame.c
src/blob.c
src/diff.c
src/grep.c
src/io.c
src/log.c
src/main.c
src/pager.c
src/refs.c
src/stage.c
src/tree.c
src/view.c