From a3b1d956c4a7311469b05c32e75dc4f067e7c271 Mon Sep 17 00:00:00 2001 From: mattn Date: Fri, 13 Apr 2012 13:09:32 +0900 Subject: use strdisplaywidth(). --- template/help/snip-section.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/help/snip-section.txt b/template/help/snip-section.txt index 5f8cef7..e8b5f9e 100644 --- a/template/help/snip-section.txt +++ b/template/help/snip-section.txt @@ -1,4 +1,4 @@ ============================================================================== -{{_expr_:toupper("{{_input_:title}}")}}{{_expr_:repeat(' ',77-len("{{_input_:title}}")*2-len(expand("%:p:t:r")))}}*{{_expr_:expand("%:p:t:r")}}-{{_input_:title}}* +{{_expr_:toupper("{{_input_:title}}")}}{{_expr_:repeat(' ',77-strdisplaywidth("{{_input_:title}}")*2-strdisplaywidth(expand("%:p:t:r")))}}*{{_expr_:expand("%:p:t:r")}}-{{_input_:title}}* {{_cursor_}} -- cgit v1.2.3-54-g00ecf