JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Copy non set positions as spaces
authorRoberto E. Vargas Caballero <k0ga@shike2.com>
Mon, 17 Sep 2012 20:13:09 +0000 (22:13 +0200)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Mon, 17 Sep 2012 20:13:09 +0000 (22:13 +0200)
commit88a8f85a8a6de56d23510cf6e7810d90478085a5
tree5ed1a807527bb243d35bef192011bb647d92815c
parent111199cf226b33f12e6ee3e66e50fbe5c3566e33
Copy non set positions as spaces

st selection don't insert in the selection position whose value is not
set. This is correct for the positions in the end of the line, but cause
some problems in the beginning. For example echo -e 'a\tb' will print in the
screen:

a b

but after selecting and copying in some place you get:

ab

because positions from 1 to 7 don't have any value. This patch deals all
positions without value as blank (even at the end of the line).
---
 st.c |   17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)
st.c