resurrecting-open-source-projects / scrot

SCReenshOT - command line screen capture utility
Other
511 stars 51 forks source link

Line mode improvements #282

Closed N-R-K closed 1 year ago

N-R-K commented 1 year ago

fix: loose suboption parsing for --line

currently, it unnecessarily uses strncmp and thus ends up accepting "edgee" as "edge" etc.

use an enum for internal line mode

no need to carry around a string internally. removes unnecessary allocation and string comparisons.