Skip to content

Commit

Permalink
Add a todo
Browse files Browse the repository at this point in the history
  • Loading branch information
pombadev committed Nov 10, 2021
1 parent 50d7ed0 commit 5670dac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ Usage of commandlinefu:
-version
Prints version information
```

# TODO
- Save preferences in a setting file
2 changes: 1 addition & 1 deletion commandlinefu.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func fetch(url string) (*string, error) {

// Print source to stdout with syntax highlight applied
func (app *App) PrettyPrint(source string) error {
err := quick.Highlight(os.Stdout, source, "bash", "terminal256", app.cli.theme)
err := quick.Highlight(os.Stdout, "\n"+source, "bash", "terminal256", app.cli.theme)

if err != nil {
return err
Expand Down
4 changes: 1 addition & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@ const (
)

func main() {
app := NewApp()

app.Run()
NewApp().Run()
}

0 comments on commit 5670dac

Please sign in to comment.