Skip to content

Commit

Permalink
Fix double -U issue
Browse files Browse the repository at this point in the history
When nwin_options.encoding == -1,
the 1st "-U" would set nwin_options.encoding=UTF8 and
the 2nd "-U" would set nwin_options.encoding=0.
  • Loading branch information
alexander-naumov committed Aug 3, 2024
1 parent 1b550ca commit 4bb2079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ int main(int argc, char **argv)
printf("Screen version %s\n", version);
exit(0);
case 'U':
nwin_options.encoding = nwin_options.encoding == -1 ? UTF8 : 0;
nwin_options.encoding = UTF8;
break;
default:
exit_with_usage(myname, "Unknown option %s", --ap);
Expand Down

0 comments on commit 4bb2079

Please sign in to comment.