diff options
author | mattn <mattn.jp@gmail.com> | 2012-04-13 13:09:32 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2012-04-13 13:09:32 +0900 |
commit | a3b1d956c4a7311469b05c32e75dc4f067e7c271 (patch) | |
tree | 43503035ab82a452337f29ca26183a491d3d389c | |
parent | 98266fe2cd45b6d353955c9279dc0fab0b8d5098 (diff) | |
download | vim-sonictemplate-a3b1d956c4a7311469b05c32e75dc4f067e7c271.tar.gz vim-sonictemplate-a3b1d956c4a7311469b05c32e75dc4f067e7c271.tar.bz2 vim-sonictemplate-a3b1d956c4a7311469b05c32e75dc4f067e7c271.zip |
use strdisplaywidth().
-rw-r--r-- | template/help/snip-section.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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_}} |