1
1
mirror of https://github.com/walles/moar.git synced 2024-09-11 12:15:43 +03:00

Merge pull request #158 from m3tav3rse/arg0

Fix +number flag handling
This commit is contained in:
Johan Walles 2023-09-29 07:08:55 +02:00 committed by GitHub
commit 242c050adf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -422,7 +422,7 @@ func main() {
stdoutIsRedirected := !term.IsTerminal(int(os.Stdout.Fd()))
var inputFilename *string
if len(remainingArgs) == 1 {
word := flagSet.Arg(0)
word := remainingArgs[0]
inputFilename = &word
// Need to check before twin.NewScreen() below, otherwise the screen