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:
20
src/screen.c
20
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user