SearchInColumn "hits" in multiple columns, highlighting doesn't always happen
poetaman opened this issue · comments
poetaman commented
I tried :SearchInColumn
for csv in my last bug, it has false hit for a cell that is not in column passed to the command. In the screenshots below, SearchInColumn 1 /Alex/
should not have hi-lighted Sir and Alex on line number 5. Also, the highlight doesn't really happen when :SearchInColumn 1 /Alex/<CR>
is entered the first time; and only starts highlighting entering :SearchInColumn 2 /Alex/<CR>n
The same problem does not occur when search is repeated in column-2:
First ;Last ;Primary Email
Alex ;Alex ;alexalex@msn.com
Alex ;Bram ;hey@yahoo.com
Bram ;Moolenar;hey@yahoo.com
Sir ;Alex ;siralex@gmail.com
Adriel;Zimmer ;hey@yahoo.com
Maddy ;Daddy ;maddy@gmail.com
Erica ;Acire ;hey@yahoo.com
Panhan;Jiabao ;pajiabao@yahoo.com
Christian Brabandt commented
Hm, the regex looks good. It rather seems to be a bug in Vims Regexp NFA Engine, it works with :set re=1
. Closing as not a csv bug