summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-12-05 16:10:42 +0100
committerBram Moolenaar <Bram@vim.org>2012-12-05 16:10:42 +0100
commit9750bb199e0f171c185bd3a23591e57922765509 (patch)
tree29f641fcf96efd47db0615626dd41e418314b677 /src/screen.c
parent0f9d0869c7acd08a4dc9bb4ac84c9c7c4e9f079b (diff)
downloadvim-git-9750bb199e0f171c185bd3a23591e57922765509.tar.gz
updated for version 7.3.748v7.3.748
Problem: Cannot properly test conceal mode. Solution: Add the screencol() and screenrow() functions. Use them in test88. (Simon Ruderich)
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/screen.c b/src/screen.c
index 438627ace..7e11fa4d8 100644
--- 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;
+}