updated for version 7.0-143
diff --git a/src/option.c b/src/option.c
index aa8a70e..0bd218c 100644
--- a/src/option.c
+++ b/src/option.c
@@ -3405,7 +3405,7 @@
 	}
 	else if (flags & P_NUM)
 	{
-	    if (varp == (char_u *)PV_SCROLL)
+	    if (options[opt_idx].indir == PV_SCROLL)
 		win_comp_scroll(curwin);
 	    else
 	    {