diff --git a/selection.c b/selection.c index 4d66093..e2c23b0 100644 --- a/selection.c +++ b/selection.c @@ -172,6 +172,9 @@ LIB3270_ACTION(unselect) CHECK_SESSION_HANDLE(hSession); + if(!hSession->selected) + return; + hSession->selected = 0; for(a = 0; a < hSession->rows*hSession->cols; a++) -- libgit2 0.21.2