Skip to content

Commit

Permalink
Remove unused function vcol2col.
Browse files Browse the repository at this point in the history
  • Loading branch information
lslah committed Apr 10, 2014
1 parent 3acb067 commit e26d1bd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
26 changes: 0 additions & 26 deletions src/ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -940,32 +940,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.
Expand Down
1 change: 0 additions & 1 deletion src/ui.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ 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);
/* vim: set ft=c : */
#endif /* NEOVIM_UI_H */

0 comments on commit e26d1bd

Please sign in to comment.