mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	Remove unused function vcol2col.
This commit is contained in:
		
							
								
								
									
										26
									
								
								src/ui.c
									
									
									
									
									
								
							
							
						
						
									
										26
									
								
								src/ui.c
									
									
									
									
									
								
							| @@ -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. | ||||||
|   | |||||||
							
								
								
									
										1
									
								
								src/ui.h
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								src/ui.h
									
									
									
									
									
								
							| @@ -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 */ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Thomas Wienecke
					Thomas Wienecke