Commit be38b1357a8088504de1eafa3c0c9d8812bba812
1 parent
ef8c8345
Exists in
master
and in
5 other branches
Rômulo Silva Neiva
29 de agosto de 2012 07:54 * na ação de colar (ctrl+c) o cursor salta para a linha de baixo, não permanece na área da colagem.
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
src/lib3270/selection.c
@@ -408,6 +408,10 @@ static char * get_text(H3270 *hSession,unsigned char all) | @@ -408,6 +408,10 @@ static char * get_text(H3270 *hSession,unsigned char all) | ||
408 | lib3270_free(ret); | 408 | lib3270_free(ret); |
409 | return NULL; | 409 | return NULL; |
410 | } | 410 | } |
411 | + else if(sz > 1 && ret[sz-1] == '\n') // Remove ending \n | ||
412 | + { | ||
413 | + ret[sz-1] = 0; | ||
414 | + } | ||
411 | 415 | ||
412 | ret[sz++] = 0; | 416 | ret[sz++] = 0; |
413 | 417 |