Introduction
Introduction Statistics Contact Development Disclaimer Help
tStrip trailing spaces from lines when copying selection. - st - [fork] customi…
git clone git://src.adamsgaard.dk/st
Log
Files
Refs
README
LICENSE
---
commit 0ca0dd8b11ec0febc547e485395b7c9ec01e2866
parent c371fe58a36abbfbf684e62d6b4026173dbc79be
Author: Alexander Sedov <[email protected]>
Date: Sun, 14 Apr 2013 23:17:44 +0400
Strip trailing spaces from lines when copying selection.
Signed-off-by: Christoph Lohmann <[email protected]>
Diffstat:
M st.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/st.c b/st.c
t@@ -773,7 +773,8 @@ selcopy(void) {
gp = &term.line[y][0];
last = gp + term.col;
- while(--last >= gp && !(last->state & GLYPH_SET))
+ while(--last >= gp && !((last->state & GLYPH_SET) && \
+ selected(last - gp, y) && strc…
/* nothing */;
for(x = 0; gp <= last; x++, ++gp) {
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.