Introduction
Introduction Statistics Contact Development Disclaimer Help
ttiny cleanup - st - [fork] customized build of st, the simple terminal
git clone git://src.adamsgaard.dk/st
Log
Files
Refs
README
LICENSE
---
commit bb6dc332067fddcdcb0940ebc9b5f41c61429c46
parent 2323e962e6bcddba42fd8be977088fb63ed8844c
Author: Hiltjo Posthuma <[email protected]>
Date: Tue, 3 Jun 2014 17:55:53 +0200
ttiny cleanup
Signed-off-by: Roberto E. Vargas Caballero <[email protected]>
Diffstat:
M st.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/st.c b/st.c
t@@ -920,7 +920,7 @@ bpress(XEvent *e) {
char *
getsel(void) {
char *str, *ptr;
- int x, y, bufsize, size, i, ex;
+ int x, y, bufsize, size, ex;
Glyph *gp, *last;
if(sel.ob.x == -1)
t@@ -965,13 +965,10 @@ getsel(void) {
* after the visible text '\n' is appended.
*/
if(y == sel.ne.y) {
- i = term.col;
- while(--i > 0 && term.line[y][i].c[0] == ' ')
- /* nothing */;
ex = sel.ne.x;
if(sel.nb.y == sel.ne.y && sel.ne.x < sel.nb.x)
ex = sel.nb.x;
- if(i < ex)
+ if(tlinelen(y) < ex)
*ptr++ = '\n';
}
}
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.