Fix #491 - Lazy-loading with omaps
This commit is contained in:
		
							parent
							
								
									765a2d21d3
								
							
						
					
					
						commit
						44893a1901
					
				
							
								
								
									
										7
									
								
								plug.vim
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								plug.vim
									
									
									
									
									
								
							|  | @ -493,6 +493,13 @@ function! s:lod_map(map, names, prefix) | ||||||
|     endif |     endif | ||||||
|     let extra .= nr2char(c) |     let extra .= nr2char(c) | ||||||
|   endwhile |   endwhile | ||||||
|  |   if v:count | ||||||
|  |     call feedkeys(v:count, 'n') | ||||||
|  |   endif | ||||||
|  |   if mode(1) == 'no' | ||||||
|  |     call feedkeys('"'.v:register, 'n') | ||||||
|  |     call feedkeys(v:operator) | ||||||
|  |   endif | ||||||
|   call feedkeys(a:prefix . substitute(a:map, '^<Plug>', "\<Plug>", '') . extra) |   call feedkeys(a:prefix . substitute(a:map, '^<Plug>', "\<Plug>", '') . extra) | ||||||
| endfunction | endfunction | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user