0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.3.748

Problem:    Cannot properly test conceal mode.
Solution:   Add the screencol() and screenrow() functions.  Use them in
            test88. (Simon Ruderich)
This commit is contained in:
Bram Moolenaar
2012-12-05 16:10:42 +01:00
parent 0f9d0869c7
commit 9750bb199e
13 changed files with 171 additions and 8 deletions

View File

@@ -10264,3 +10264,23 @@ number_width(wp)
return n;
}
#endif
/*
* Return the current cursor column. This is the actual position on the
* screen. First column is 0.
*/
int
screen_screencol()
{
return screen_cur_col;
}
/*
* Return the current cursor row. This is the actual position on the screen.
* First row is 0.
*/
int
screen_screenrow()
{
return screen_cur_row;
}