diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-04-15 21:00:38 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-04-15 21:00:38 +0000 |
commit | 402d2fea7025356c7abcb891017a1b7ddf99cbbf (patch) | |
tree | 83c5973b6316912331d4a4c070996d7888097e5c /src/charset.c | |
parent | 4499d2ee58db42e4ec59bb2c2dbb5eeca2313e8b (diff) | |
download | vim-git-402d2fea7025356c7abcb891017a1b7ddf99cbbf.tar.gz |
updated for version 7.0066
Diffstat (limited to 'src/charset.c')
-rw-r--r-- | src/charset.c | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/src/charset.c b/src/charset.c index bd319ffe7..a82a7264b 100644 --- a/src/charset.c +++ b/src/charset.c @@ -972,6 +972,19 @@ init_spell_chartab() } #endif #ifdef FEAT_MBYTE + else if (STRCMP(p_enc, "iso-8859-2") == 0) + { + /* latin2 */ + for ( ; i <= 0xa0; ++i) + spell_chartab[i] = FALSE; + for ( ; i <= 255; ++i) + spell_chartab[i] = TRUE; + spell_chartab[0xa4] = FALSE; /* currency sign */ + spell_chartab[0xa7] = FALSE; /* paragraph sign */ + spell_chartab[0xad] = FALSE; /* dash */ + spell_chartab[0xb0] = FALSE; /* degrees */ + spell_chartab[0xf7] = FALSE; /* divide-by */ + } else #endif #if defined(FEAT_MBYTE) || !defined(MSDOS) @@ -1117,6 +1130,7 @@ win_lbr_chartabsize(wp, s, col, headp) int numberextra; char_u *ps; int tab_corr = (*s == TAB); + int n; /* * No 'linebreak' and 'showbreak': return quickly. @@ -1160,9 +1174,12 @@ win_lbr_chartabsize(wp, s, col, headp) col2 = col; colmax = W_WIDTH(wp) - numberextra; if (col >= colmax) - colmax += (((col - colmax) - / (colmax + win_col_off2(wp))) + 1) - * (colmax + win_col_off2(wp)); + { + n = colmax + win_col_off2(wp); + if (n > 0) + colmax += (((col - colmax) / n) + 1) * n; + } + for (;;) { ps = s; |