aboutsummaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
authorThomas Wienecke <wienecke.t@gmail.com>2014-04-10 19:36:04 +0200
committerThomas Wienecke <wienecke.t@gmail.com>2014-05-03 17:41:42 +0200
commit71b1f4ef5af62b8064f8266dae600026816c6806 (patch)
tree0e59ca60704a95a70022ea8b05cfa0f130bc8496 /src/ui.c
parent75d8b240600d4691d6025dcc102c607b16d57a37 (diff)
downloadrneovim-71b1f4ef5af62b8064f8266dae600026816c6806.tar.gz
rneovim-71b1f4ef5af62b8064f8266dae600026816c6806.tar.bz2
rneovim-71b1f4ef5af62b8064f8266dae600026816c6806.zip
Remove unused function vcol2col.
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/ui.c b/src/ui.c
index 0bbcede97d..7e656bd1ce 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -938,32 +938,6 @@ win_T *mouse_find_win(int *rowp, int *colp)
return fp->fr_win;
}
-#if defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_GTK) || defined(FEAT_GUI_MAC) \
- || defined(FEAT_GUI_ATHENA) || defined(FEAT_GUI_MSWIN) \
- || defined(FEAT_GUI_PHOTON) || defined(PROTO)
-
-/*
- * Convert a virtual (screen) column to a character column.
- * The first column is one.
- */
-int vcol2col(win_T *wp, linenr_T lnum, int vcol)
-{
- /* try to advance to the specified column */
- int count = 0;
- char_u *ptr;
- char_u *start;
-
- start = ptr = ml_get_buf(wp->w_buffer, lnum, FALSE);
- while (count < vcol && *ptr != NUL) {
- count += win_lbr_chartabsize(wp, ptr, count, NULL);
- mb_ptr_adv(ptr);
- }
- return (int)(ptr - start);
-}
-#endif
-
-
-
#if defined(USE_IM_CONTROL) || defined(PROTO)
/*
* Save current Input Method status to specified place.