Remove one indentation level in getsel().

dev
noname 2014-04-27 15:40:23 +04:00 committed by Roberto E. Vargas Caballero
parent 6681af165b
commit 74962bf566
1 changed files with 48 additions and 49 deletions

7
st.c
View File

@ -922,9 +922,9 @@ getsel(void) {
int x, y, bufsize, size, i, ex;
Glyph *gp, *last;
if(sel.ob.x == -1) {
str = NULL;
} else {
if(sel.ob.x == -1)
return NULL;
bufsize = (term.col+1) * (sel.ne.y-sel.nb.y+1) * UTF_SIZ;
ptr = str = xmalloc(bufsize);
@ -975,7 +975,6 @@ getsel(void) {
}
}
*ptr = 0;
}
return str;
}