aboutsummaryrefslogtreecommitdiff
path: root/vis-text-objects.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-12-15 12:38:51 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-12-15 12:47:50 +0100
commitf2ea65a0c03ff7cd17c7da1586fa68dcfa8f1fa9 (patch)
tree2a738be37430226c3f107186d2a499e6eb4408a3 /vis-text-objects.c
parent904a7a4abd511426e2430fdd016fca22e84583c2 (diff)
downloadvis-f2ea65a0c03ff7cd17c7da1586fa68dcfa8f1fa9.tar.gz
vis-f2ea65a0c03ff7cd17c7da1586fa68dcfa8f1fa9.tar.xz
vis: always store registers values NUL terminated
Previously we only made sure that the register content is NUL terminated when reading it out. This made it impossible to distinguish between an empty register and one which stores a single NUL byte. Now the in memory representation of a non-empty register is always NUL terminated. When appending we temporarily remove the trailing NUL byte and restore it later. This should fix put commands of a previously yanked single NUL byte.
Diffstat (limited to 'vis-text-objects.c')
0 files changed, 0 insertions, 0 deletions