chrisbra / csv.vim

A Filetype plugin for csv files

Home Page:http://www.vim.org/scripts/script.php?script_id=2830

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SearchInColumn "hits" in multiple columns, highlighting doesn't always happen 

poetaman opened this issue · comments

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

Screen Shot 2021-02-22 at 2 15 45 AM

The same problem does not occur when search is repeated in column-2:

Screen Shot 2021-02-22 at 2 16 06 AM

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 

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