mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	vim-patch:8.1.0677: look-behind match may use the wrong line number
Problem:    Look-behind match may use the wrong line number. (Dominique Pelle)
Solution:   Use the line number in regsave instead of the one in behind_pos,
            we may be looking at the previous line. (closes vim/vim#3749)
866f355814
			
			
This commit is contained in:
		| @@ -4920,7 +4920,7 @@ regmatch ( | |||||||
|               } |               } | ||||||
|             } else { |             } else { | ||||||
|               const char_u *const line = |               const char_u *const line = | ||||||
|                   reg_getline(behind_pos.rs_u.pos.lnum); |                   reg_getline(rp->rs_un.regsave.rs_u.pos.lnum); | ||||||
|  |  | ||||||
|               rp->rs_un.regsave.rs_u.pos.col -= |               rp->rs_un.regsave.rs_u.pos.col -= | ||||||
|                   utf_head_off(line, |                   utf_head_off(line, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jan Edmund Lazo
					Jan Edmund Lazo