diff src/vim.h @ 7358:6fbeef3b65e6 v7.4.984

commit https://github.com/vim/vim/commit/ad4d8a192abf44b89371af87d70b971cd654b799 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 28 19:20:36 2015 +0100 patch 7.4.984 Problem: searchpos() always starts searching in the first column, which is not what some people expect. (Brett Stahlman) Solution: Add the 'z' flag: start at the specified column.
author Christian Brabandt <cb@256bit.org>
date Mon, 28 Dec 2015 19:30:04 +0100
parents 6600871bb38c
children 1886f2863437
line wrap: on
line diff
--- a/src/vim.h
+++ b/src/vim.h
@@ -930,6 +930,7 @@ extern char *(*dyn_libintl_textdomain)(c
 #define SEARCH_MARK  0x200  /* set previous context mark */
 #define SEARCH_KEEP  0x400  /* keep previous search pattern */
 #define SEARCH_PEEK  0x800  /* peek for typed char, cancel search */
+#define SEARCH_COL  0x1000  /* start at specified column instead of zero */
 
 /* Values for find_ident_under_cursor() */
 #define FIND_IDENT	1	/* find identifier (word) */