Remove unused function vcol2col.

This commit is contained in:
Thomas Wienecke 2014-04-10 19:36:04 +02:00
parent 75d8b24060
commit 71b1f4ef5a
2 changed files with 0 additions and 27 deletions

View File

@ -938,32 +938,6 @@ win_T *mouse_find_win(int *rowp, int *colp)
return fp->fr_win; 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) #if defined(USE_IM_CONTROL) || defined(PROTO)
/* /*
* Save current Input Method status to specified place. * Save current Input Method status to specified place.

View File

@ -25,6 +25,5 @@ int check_row(int row);
int jump_to_mouse(int flags, int *inclusive, int which_button); 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); int mouse_comp_pos(win_T *win, int *rowp, int *colp, linenr_T *lnump);
win_T *mouse_find_win(int *rowp, int *colp); 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); void im_save_status(long *psave);
#endif /* NEOVIM_UI_H */ #endif /* NEOVIM_UI_H */