Commits

Anonymous committed e2c988f

Fixed paredit ,< and ,> when 'whichwrap' contains 'h' and 'l'

  • Participants
  • Parent commits 7b11e23

Comments (0)

Files changed (1)

plugin/paredit.vim

 " paredit.vim:
 "               Paredit mode for Slimv
-" Version:      0.9.11
-" Last Change:  23 Aug 2013
+" Version:      0.9.12
+" Last Change:  20 Nov 2013
 " Maintainer:   Tamas Kovacs <kovisoft at gmail dot com>
 " License:      This file is placed in the public domain.
 "               No warranty, express or implied.
         " Go to previous character
         if !moved
             let [l1, c1] = [line( '.' ), col( '.' )]
+            let save_ww = &whichwrap
+            set whichwrap=
             normal! h
+            let &whichwrap = save_ww
         endif
         let moved = 0
         let [l, c] = [line( '.' ), col( '.' )]
     while 1
         " Go to next character
         let [l1, c1] = [line( '.' ), col( '.' )]
+        let save_ww = &whichwrap
+        set whichwrap=
         normal! l
+        let &whichwrap = save_ww
         let [l, c] = [line( '.' ), col( '.' )]
 
         " Skip comments