aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ui.c26
-rw-r--r--src/ui.h1
2 files changed, 0 insertions, 27 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.
diff --git a/src/ui.h b/src/ui.h
index 7108459323..aed242c262 100644
--- a/src/ui.h
+++ b/src/ui.h
@@ -25,6 +25,5 @@ int check_row(int row);
int jump_to_mouse(int flags, int *inclusive, int which_button);
int mouse_comp_pos(win_T *win, int *rowp, int *colp, linenr_T *lnump);
win_T *mouse_find_win(int *rowp, int *colp);
-int vcol2col(win_T *wp, linenr_T lnum, int vcol);
void im_save_status(long *psave);
#endif /* NEOVIM_UI_H */