Mercurial > vim
annotate runtime/ftplugin/help.vim @ 10928:5b3e671ef6a2 v8.0.0353
patch 8.0.0353: if [RO] is translated it may be truncated
commit https://github.com/vim/vim/commit/3457d295f4035293a78f9a9851ea416f923dd59e
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Feb 23 14:55:59 2017 +0100
patch 8.0.0353: if [RO] is translated it may be truncated
Problem: If [RO] in the status line is translated to a longer string, it is
trunctted to 4 bytes.
Solution: Skip over the resulting string. (Jente Hidskes, closes #1499)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 23 Feb 2017 15:00:05 +0100 |
parents | f2de38a019a2 |
children | 1218c5353e2b |
rev | line source |
---|---|
375 | 1 " Vim filetype plugin file |
2 " Language: Vim help file | |
839 | 3 " Maintainer: Nikolai Weibull <now@bitwi.se> |
1698 | 4 " Latest Revision: 2008-07-09 |
375 | 5 |
6 if exists("b:did_ftplugin") | |
7 finish | |
8 endif | |
9 let b:did_ftplugin = 1 | |
10 | |
1698 | 11 let s:cpo_save = &cpo |
12 set cpo&vim | |
13 | |
2378
85b7dc8da5eb
Add the 'concealcursor' option to decide when the cursor line is to be
Bram Moolenaar <bram@vim.org>
parents:
2321
diff
changeset
|
14 let b:undo_ftplugin = "setl fo< tw< cole< cocu<" |
375 | 15 |
2965 | 16 setlocal formatoptions+=tcroql textwidth=78 |
17 if has("conceal") | |
18 setlocal cole=2 cocu=nc | |
19 endif | |
1698 | 20 |
21 let &cpo = s:cpo_save | |
22 unlet s:cpo_save |