Skip to content

Commit 23b4f1e

Browse files
committed
Fix issue #102: Code block detection seems somewhat broken
See issue 102 on GitHub: #102 Thanks to @gstewart for the analysis.
1 parent d306012 commit 23b4f1e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ If you have questions, bug reports, suggestions, etc. the author can be contacte
356356
## License
357357

358358
This software is licensed under the [MIT license] [mit].
359-
© 2014 Peter Odding &lt;<peter@peterodding.com>&gt;.
359+
© 2015 Peter Odding &lt;<peter@peterodding.com>&gt;.
360360

361361

362362
[ctrlwf]: http://vimdoc.sourceforge.net/htmldoc/windows.html#CTRL-W_f

autoload/xolox/notes.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
" Vim auto-load script
22
" Author: Peter Odding <peter@peterodding.com>
3-
" Last Change: December 29, 2014
3+
" Last Change: March 5, 2015
44
" URL: http://peterodding.com/code/vim/notes/
55

66
" Note: This file is encoded in UTF-8 including a byte order mark so
77
" that Vim loads the script using the right encoding transparently.
88

9-
let g:xolox#notes#version = '0.31'
9+
let g:xolox#notes#version = '0.31.1'
1010
let g:xolox#notes#url_pattern = '\<\(mailto:\|javascript:\|\w\{3,}://\)\(\S*\w\)\+/\?'
1111
let s:scriptdir = expand('<sfile>:p:h')
1212

@@ -1276,7 +1276,7 @@ function! xolox#notes#inside_snippet(lnum, col) " {{{3
12761276
try
12771277
call setpos('.', [0, a:lnum, a:col, 0])
12781278
let matching_subpattern = search('{{{\|\(}}}\)\|```\w\|\(```\)', 'bnpW')
1279-
return matching_subpattern >= 1
1279+
return matching_subpattern == 1
12801280
finally
12811281
call setpos('.', pos_save)
12821282
endtry

doc/notes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ If you like the script please vote for it on Vim Online [21].
717717
*notes-license*
718718
License ~
719719

720-
This software is licensed under the MIT license [22]. © 2014 Peter Odding
720+
This software is licensed under the MIT license [22]. © 2015 Peter Odding
721721
<peter@peterodding.com>.
722722

723723
===============================================================================

0 commit comments

Comments
 (0)