Skip to content
This repository

Fix dependency on 'ignorecase' #4

Closed
wants to merge 1 commit into from

2 participants

h1mesuke Kana Natsuno
h1mesuke

s:plugin.define_interface_key_mappings() defines key mappings incorrectly when 'ignorecase' is enabled. I wrote a patch to fix the problem.

Kana Natsuno
Owner

Thank you.

Kana Natsuno kana closed this December 08, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Dec 08, 2011
h1mesuke Fix dependency on 'ignorecase' 96b01a0
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  autoload/textobj/user.vim
8  autoload/textobj/user.vim
@@ -394,16 +394,16 @@ function! s:plugin.define_interface_key_mappings()  "{{{3
394 394
       elseif has_key(specs, '*pattern*')
395 395
         if spec_name =~# '^move-[npNP]$'
396 396
           let flags = ''
397  
-          let flags .= (spec_name =~ '[pP]$' ? 'b' : '')
398  
-          let flags .= (spec_name =~ '[NP]$' ? 'e' : '')
  397
+          let flags .= (spec_name =~# '[pP]$' ? 'b' : '')
  398
+          let flags .= (spec_name =~# '[NP]$' ? 'e' : '')
399 399
           let impl_fname = 'move'
400 400
         elseif spec_name ==# 'select'
401 401
           let flags = ''
402 402
           let impl_fname = 'select'
403 403
         elseif spec_name =~# '^select-[ai]$'
404 404
           let flags = ''
405  
-          let flags .= (spec_name =~ 'a$' ? 'a' : '')
406  
-          let flags .= (spec_name =~ 'i$' ? 'i' : '')
  405
+          let flags .= (spec_name =~# 'a$' ? 'a' : '')
  406
+          let flags .= (spec_name =~# 'i$' ? 'i' : '')
407 407
           let impl_fname = 'select_pair'
408 408
         else
409 409
           echoerr 'Unknown spec:' string(spec_name)
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.