aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-22 22:08:08 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-22 22:08:08 +1200
commit2cbdbf0baf4212e48fefb168cc7914f1dabdb80c (patch)
treec300f93edc89ba0b9d58c1086d22faf68a0c1bd0
parentUpdate digraph_search.vim to v1.1.0 (diff)
downloaddotfiles-2cbdbf0baf4212e48fefb168cc7914f1dabdb80c.tar.gz
dotfiles-2cbdbf0baf4212e48fefb168cc7914f1dabdb80c.zip
Fix up some pattern qualifiers
-rw-r--r--vim/autoload/html.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/autoload/html.vim b/vim/autoload/html.vim
index 9466be33..7ac4f9d3 100644
--- a/vim/autoload/html.vim
+++ b/vim/autoload/html.vim
@@ -28,11 +28,11 @@ function! html#TimestampUpdate() abort
endif
let cv = winsaveview()
call cursor(1,1)
- let li = search('\C^\s*<em>Last updated: .\+</em>$', 'n')
+ let li = search('\m\C^\s*<em>Last updated: .\+</em>$', 'n')
if li
- let date = substitute(system('date -u'), '\C\n$', '', '')
+ let date = substitute(system('date -u'), '\n$', '', '')
let line = getline(li)
- call setline(li, substitute(line, '\C\S.*',
+ call setline(li, substitute(line, '\S.*',
\ '<em>Last updated: '.date.'</em>', ''))
endif
call winrestview(cv)