diff --git a/m/reader_test.go b/m/reader_test.go index 6bb3505..ab66c64 100644 --- a/m/reader_test.go +++ b/m/reader_test.go @@ -325,7 +325,14 @@ func TestReadTextDone(t *testing.T) { // JSON should be auto detected and formatted func TestFormatJson(t *testing.T) { jsonStream := strings.NewReader(`{"key": "value"}`) - testMe := NewReaderFromStream("JSON test", jsonStream, formatters.TTY, ReaderOptions{Style: styles.Get("native")}) + testMe := NewReaderFromStream( + "JSON test", + jsonStream, + formatters.TTY, + ReaderOptions{ + Style: styles.Get("native"), + ShouldFormat: true, + }) assert.NilError(t, testMe._wait()) diff --git a/moar.go b/moar.go index c4e004c..57f38e9 100644 --- a/moar.go +++ b/moar.go @@ -331,7 +331,7 @@ func pagerFromArgs( noLineNumbers := flagSet.Bool("no-linenumbers", noLineNumbersDefault(), "Hide line numbers on startup, press left arrow key to show") noStatusBar := flagSet.Bool("no-statusbar", false, "Hide the status bar, toggle with '='") - noFormat := flagSet.Bool("no-format", false, "Never format the input") + noFormat := flagSet.Bool("no-format", false, "Never format the input (but keep highlighting)") quitIfOneScreen := flagSet.Bool("quit-if-one-screen", false, "Don't page if contents fits on one screen") noClearOnExit := flagSet.Bool("no-clear-on-exit", false, "Retain screen contents when exiting moar") statusBarStyle := flagSetFunc(flagSet, "statusbar", m.STATUSBAR_STYLE_INVERSE,