Mercurial > vim
comparison src/search.c @ 3318:c70c005f61fb v7.3.426
updated for version 7.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)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 04 Feb 2012 23:35:00 +0100 |
parents | ded8f5add04c |
children | 5c1aaf9b4b1b |
comparison
equal
deleted
inserted
replaced
3317:8d48efa4dc15 | 3318:c70c005f61fb |
---|---|
2499 save_cursor = curwin->w_cursor; | 2499 save_cursor = curwin->w_cursor; |
2500 save_so = p_so; | 2500 save_so = p_so; |
2501 save_siso = p_siso; | 2501 save_siso = p_siso; |
2502 /* Handle "$" in 'cpo': If the ')' is typed on top of the "$", | 2502 /* Handle "$" in 'cpo': If the ')' is typed on top of the "$", |
2503 * stop displaying the "$". */ | 2503 * stop displaying the "$". */ |
2504 if (dollar_vcol > 0 && dollar_vcol == curwin->w_virtcol) | 2504 if (dollar_vcol >= 0 && dollar_vcol == curwin->w_virtcol) |
2505 dollar_vcol = 0; | 2505 dollar_vcol = -1; |
2506 ++curwin->w_virtcol; /* do display ')' just before "$" */ | 2506 ++curwin->w_virtcol; /* do display ')' just before "$" */ |
2507 update_screen(VALID); /* show the new char first */ | 2507 update_screen(VALID); /* show the new char first */ |
2508 | 2508 |
2509 save_dollar_vcol = dollar_vcol; | 2509 save_dollar_vcol = dollar_vcol; |
2510 #ifdef CURSOR_SHAPE | 2510 #ifdef CURSOR_SHAPE |