Skip to content

Commit

Permalink
Fix lock-up on home key in exchange field (Tlf#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
zcsahok authored May 24, 2024
1 parent 0ac0597 commit bf046ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/getexchange.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ int getexchange(void) {
* Fall through to KEY_LEFT stanza if ungetch() is successful.
*/
case KEY_HOME: {
if (ungetch(x) != OK)
if (current_qso.comment[0] == '\0' || ungetch(x) != OK)
break;
}

Expand Down

0 comments on commit bf046ce

Please sign in to comment.