@@ -668,6 +668,8 @@ static void f_reverse __ARGS((typval_T *argvars, typval_T *rettv));
668668#ifdef FEAT_FLOAT
669669static void f_round __ARGS((typval_T *argvars, typval_T *rettv));
670670#endif
671+ static void f_screencol __ARGS((typval_T *argvars, typval_T *rettv));
672+ static void f_screenrow __ARGS((typval_T *argvars, typval_T *rettv));
671673static void f_search __ARGS((typval_T *argvars, typval_T *rettv));
672674static void f_searchdecl __ARGS((typval_T *argvars, typval_T *rettv));
673675static void f_searchpair __ARGS((typval_T *argvars, typval_T *rettv));
@@ -8033,6 +8035,8 @@ static struct fst
80338035#ifdef FEAT_FLOAT
80348036 {"round", 1, 1, f_round},
80358037#endif
8038+ {"screencol", 0, 0, f_screencol},
8039+ {"screenrow", 0, 0, f_screenrow},
80368040 {"search", 1, 4, f_search},
80378041 {"searchdecl", 1, 3, f_searchdecl},
80388042 {"searchpair", 3, 7, f_searchpair},
@@ -15724,6 +15728,30 @@ f_round(argvars, rettv)
1572415728}
1572515729#endif
1572615730
15731+ /*
15732+ * "screencol()" function
15733+ *
15734+ * First column is 1 to be consistent with virtcol().
15735+ */
15736+ static void
15737+ f_screencol(argvars, rettv)
15738+ typval_T *argvars UNUSED;
15739+ typval_T *rettv;
15740+ {
15741+ rettv->vval.v_number = screen_screencol() + 1;
15742+ }
15743+
15744+ /*
15745+ * "screenrow()" function
15746+ */
15747+ static void
15748+ f_screenrow(argvars, rettv)
15749+ typval_T *argvars UNUSED;
15750+ typval_T *rettv;
15751+ {
15752+ rettv->vval.v_number = screen_screenrow() + 1;
15753+ }
15754+
1572715755/*
1572815756 * "search()" function
1572915757 */
0 commit comments