soywiki 0.3.7 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/soywiki.rb +1 -1
  2. data/lib/soywiki.vim +6 -1
  3. metadata +2 -2
data/lib/soywiki.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'string_ext'
2
2
 
3
3
  module Soywiki
4
- VERSION = '0.3.7'
4
+ VERSION = '0.3.8'
5
5
  WIKI_WORD = /\b([a-z][\w_]+\.)?[A-Z][a-z]+[A-Z]\w*\b/
6
6
  HYPERLINK = %r|\bhttps?://[^ >)\n\]]+|
7
7
 
data/lib/soywiki.vim CHANGED
@@ -119,7 +119,12 @@ endfunc
119
119
  func! s:find_next_wiki_link(backward)
120
120
  let n = 0
121
121
  " don't wrap
122
- let result = search(s:wiki_link_pattern, 'W' . (a:backward == 1 ? 'b' : ''))
122
+ if a:backward == 1
123
+ normal b
124
+ let result = search(s:wiki_link_pattern, 'Wb')
125
+ else
126
+ let result = search(s:wiki_link_pattern, 'W')
127
+ endif
123
128
  if (result == 0)
124
129
  return ""
125
130
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 7
9
- version: 0.3.7
8
+ - 8
9
+ version: 0.3.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi