mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 9.0.0679: tests failing with 'smoothscroll', 'number' and "n" in 'cpo'
Problem: Tests failing with 'smoothscroll', 'number' and "n" in 'cpo'. Solution: Do not count number column in topline if columns are skipped.
This commit is contained in:
parent
97f0eb169b
commit
35b251d2c2
@ -342,9 +342,11 @@ handle_lnum_col(
|
|||||||
int sign_present UNUSED,
|
int sign_present UNUSED,
|
||||||
int num_attr UNUSED)
|
int num_attr UNUSED)
|
||||||
{
|
{
|
||||||
|
int has_cpo_n = vim_strchr(p_cpo, CPO_NUMCOL) != NULL;
|
||||||
|
|
||||||
if ((wp->w_p_nu || wp->w_p_rnu)
|
if ((wp->w_p_nu || wp->w_p_rnu)
|
||||||
&& (wlv->row == wlv->startrow + wlv->filler_lines
|
&& (wlv->row == wlv->startrow + wlv->filler_lines || !has_cpo_n)
|
||||||
|| vim_strchr(p_cpo, CPO_NUMCOL) == NULL))
|
&& !(has_cpo_n && wp->w_skipcol > 0 && wlv->lnum == wp->w_topline))
|
||||||
{
|
{
|
||||||
#ifdef FEAT_SIGNS
|
#ifdef FEAT_SIGNS
|
||||||
// If 'signcolumn' is set to 'number' and a sign is present
|
// If 'signcolumn' is set to 'number' and a sign is present
|
||||||
|
@ -699,6 +699,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
679,
|
||||||
/**/
|
/**/
|
||||||
678,
|
678,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user