Skip to content

Commit

Permalink
fix --fit for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
a-mr committed Oct 17, 2020
1 parent 60b34b5 commit 75abe90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/nimgrep.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1168,6 +1168,8 @@ for kind, key, val in getopt():
of "fit":
incl(options, optFit)
limitChar = terminalWidth()
when defined(windows): # Windows cmd&powershell add an empty line when
limitChar -= 1 # printing '\n' right after the last column
of "onlyascii", "only-ascii", "o": optOnlyAscii = true
of "verbose": incl(options, optVerbose)
of "filenames": incl(options, optFilenames)
Expand Down

0 comments on commit 75abe90

Please sign in to comment.