Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Commit

Permalink
Fix docs and code regarding default formatter.
Browse files Browse the repository at this point in the history
"nice" was the default for a looong time, but it's default value of the "-f"
flag. Function "get_formatters" returns "vim" in case if it fails to find one.
It should return "nice" as well. This patch fixes it.
  • Loading branch information
nsf committed Dec 23, 2013
1 parent f5d84ad commit 3e4141a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/autocomplete_formats.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# Description of Completion Assistance Formats #

Use `-f` parameter for `autocomplete` command to set format. VIM format is default and fallback.
Use `-f` parameter for `autocomplete` command to set format. "nice" format is the default and fallback.

Following formats supported:
* json
Expand Down
2 changes: 1 addition & 1 deletion formatters.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,5 +163,5 @@ func get_formatter(name string) formatter {
case "godit":
return new(godit_formatter)
}
return new(vim_formatter)
return new(nice_formatter)
}

0 comments on commit 3e4141a

Please sign in to comment.