all repos — st @ 5984657c001fe5b4690cef5ddffe11acbf7da7f2

st (suckless terminal) config

Minor naming issue fixed.
Christoph Lohmann 20h@r-36.net
commit

5984657c001fe5b4690cef5ddffe11acbf7da7f2

parent

4018b2c5075c1cab603ca137ef5f6d68b9cee483

1 files changed, 4 insertions(+), 4 deletions(-)

jump to
M st.cst.c

@@ -758,7 +758,7 @@

void selcopy(void) { char *str, *ptr, *p; - int x, y, bufsize, is_selected = 0, size; + int x, y, bufsize, isselected = 0, size; Glyph *gp, *last; if(sel.bx == -1) {

@@ -769,7 +769,7 @@ ptr = str = xmalloc(bufsize);

/* append every set & selected glyph to the selection */ for(y = sel.b.y; y < sel.e.y + 1; y++) { - is_selected = 0; + isselected = 0; gp = &term.line[y][0]; last = gp + term.col;

@@ -780,7 +780,7 @@ for(x = 0; gp <= last; x++, ++gp) {

if(!selected(x, y)) { continue; } else { - is_selected = 1; + isselected = 1; } p = (gp->state & GLYPH_SET) ? gp->c : " ";

@@ -798,7 +798,7 @@ * '\r', when something to be pasted is received by

* st. * FIXME: Fix the computer world. */ - if(is_selected && y < sel.e.y) + if(isselected && y < sel.e.y) *ptr++ = '\n'; } *ptr = 0;