From 3e4141a37ea1397e85092e4e51da3f627c57489a Mon Sep 17 00:00:00 2001 From: nsf Date: Mon, 23 Dec 2013 17:06:30 +0600 Subject: [PATCH] Fix docs and code regarding default formatter. "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. --- docs/autocomplete_formats.md | 2 +- formatters.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/autocomplete_formats.md b/docs/autocomplete_formats.md index be3c6815..c61a2e62 100644 --- a/docs/autocomplete_formats.md +++ b/docs/autocomplete_formats.md @@ -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 diff --git a/formatters.go b/formatters.go index 660f0288..0dab981a 100644 --- a/formatters.go +++ b/formatters.go @@ -163,5 +163,5 @@ func get_formatter(name string) formatter { case "godit": return new(godit_formatter) } - return new(vim_formatter) + return new(nice_formatter) }