Commit 448d5efe60d71f96ae4a8ca7f7614af524553ed1
1 parent
f6a2a93a
Exists in
master
and in
3 other branches
Iniciando implementação de clipboard
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
selection.c
| @@ -172,6 +172,9 @@ LIB3270_ACTION(unselect) | @@ -172,6 +172,9 @@ LIB3270_ACTION(unselect) | ||
| 172 | 172 | ||
| 173 | CHECK_SESSION_HANDLE(hSession); | 173 | CHECK_SESSION_HANDLE(hSession); |
| 174 | 174 | ||
| 175 | + if(!hSession->selected) | ||
| 176 | + return; | ||
| 177 | + | ||
| 175 | hSession->selected = 0; | 178 | hSession->selected = 0; |
| 176 | 179 | ||
| 177 | for(a = 0; a < hSession->rows*hSession->cols; a++) | 180 | for(a = 0; a < hSession->rows*hSession->cols; a++) |