Xinqi Bao's Git
projects
/
st.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
| inline |
side by side
(parent:
2323e96
)
tiny cleanup
author
Hiltjo Posthuma <
[email protected]
>
Tue, 3 Jun 2014 15:55:53 +0000
(17:55 +0200)
committer
Roberto E. Vargas Caballero <
[email protected]
>
Wed, 4 Jun 2014 19:09:07 +0000
(21:09 +0200)
Signed-off-by: Roberto E. Vargas Caballero <
[email protected]
>
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
9a41c5b
..
2e55963
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-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)
@@
-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';
}
}