resurrecting-open-source-projects / scrot

SCReenshOT - command line screen capture utility
Other
495 stars 49 forks source link

fix: reset delay_selection properly #294

Closed N-R-K closed 1 year ago

N-R-K commented 1 year ago

the convention is for newer cli arg to overwrite the older one. however as of now, opt.delay_selection doesn't properly get cleared. to reproduce:

./scrot -d b3 -d 5 -s -c

the earlier -d b3 makes it so that opt.delay_selection stays true even though the later -d 5 should've overwritten it.