From 0aa58d69fac8f17da112b39eab788be7a6126fbb Mon Sep 17 00:00:00 2001 From: Michito Maeda Date: Thu, 29 Aug 2019 19:23:09 +0900 Subject: [PATCH 1/2] Bit of refactoring to be ease of adding other locale messages --- plugin/cljfmt.vim | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugin/cljfmt.vim b/plugin/cljfmt.vim index 4993722..cc09a4d 100644 --- a/plugin/cljfmt.vim +++ b/plugin/cljfmt.vim @@ -46,9 +46,12 @@ function! s:FilterOutput(lines, ...) endif for line in a:lines - if line != "No matching autocommands" && line != "Keine passenden Autokommandos" - call add(l:output, line) + if line == "No matching autocommands" + \ || line == "Keine passenden Autokommandos" + continue endif + + call add(l:output, line) endfor if l:join_result return join(l:output, "\n") From a60774bf6ee3e37570e87e7c6aaa77cc7d126477 Mon Sep 17 00:00:00 2001 From: Michito Maeda Date: Thu, 29 Aug 2019 20:04:59 +0900 Subject: [PATCH 2/2] Add support for Japanese locale message --- plugin/cljfmt.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/cljfmt.vim b/plugin/cljfmt.vim index cc09a4d..5a85214 100644 --- a/plugin/cljfmt.vim +++ b/plugin/cljfmt.vim @@ -48,6 +48,7 @@ function! s:FilterOutput(lines, ...) for line in a:lines if line == "No matching autocommands" \ || line == "Keine passenden Autokommandos" + \ || line == "該当するautocommandは存在しません" continue endif