diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-02-04 23:35:00 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-02-04 23:35:00 +0100 |
commit | 76b9b3696c4381524e31d9e19efef1ba80271a44 (patch) | |
tree | ee0e0cc0cbf7f792ac04e5217cda4c3461646a64 /src/edit.c | |
parent | d87fbc2b1cd106c3fa0e47329326ea33c90a3287 (diff) |
updated for version 7.3.426v7.3.426
Problem: With '$' in 'cpoptions' the $ is not displayed in the first
column.
Solution: Use -1 instead of 0 as a special value. (Hideki Eiraku and
Hirohito Higashi)
Diffstat (limited to 'src/edit.c')
-rw-r--r-- | src/edit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/edit.c b/src/edit.c index 9a0abf94f4..6ac6142c61 100644 --- a/src/edit.c +++ b/src/edit.c @@ -1763,9 +1763,9 @@ display_dollar(col) static void undisplay_dollar() { - if (dollar_vcol) + if (dollar_vcol >= 0) { - dollar_vcol = 0; + dollar_vcol = -1; redrawWinline(curwin->w_cursor.lnum, FALSE); } } @@ -5441,7 +5441,7 @@ ins_complete(c) compl_curr_match->cp_number); edit_submode_extra = match_ref; edit_submode_highl = HLF_R; - if (dollar_vcol) + if (dollar_vcol >= 0) curs_columns(FALSE); } } @@ -8961,7 +8961,7 @@ ins_bs(c, mode, inserted_space_p) * We can emulate the vi behaviour by pretending there is a dollar * displayed even when there isn't. * --pkv Sun Jan 19 01:56:40 EST 2003 */ - if (vim_strchr(p_cpo, CPO_BACKSPACE) != NULL && dollar_vcol == 0) + if (vim_strchr(p_cpo, CPO_BACKSPACE) != NULL && dollar_vcol == -1) dollar_vcol = curwin->w_virtcol; #ifdef FEAT_FOLDING |