Mercurial > vim
diff src/screen.c @ 3986:56bb88c68f98 v7.3.748
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)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 05 Dec 2012 16:10:42 +0100 |
parents | cd59ba19985a |
children | e1b98967a985 |
line wrap: on
line diff
--- a/src/screen.c +++ b/src/screen.c @@ -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; +}