From ddbcdd823f5ed61d3c96b0cc220071977880b890 Mon Sep 17 00:00:00 2001 From: Leandro Freitas Date: Mon, 18 May 2015 19:03:57 -0300 Subject: [PATCH] fixup! Fixes #37. Inserting date on new tasks --- autoload/todo/txt.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/todo/txt.vim b/autoload/todo/txt.vim index 24f2cfd..8475e70 100644 --- a/autoload/todo/txt.vim +++ b/autoload/todo/txt.vim @@ -28,7 +28,7 @@ endfunction function! todo#txt#prepend_date() let current_line = getline('.') if (current_line =~ '^\(([a-zA-Z]) \)\?\d\{2,4\}-\d\{2\}-\d\{2\} ') && - exists('g:todo_existing_date') && g:todo_existing_date == 'n' + \ exists('g:todo_existing_date') && g:todo_existing_date == 'n' return endif execute 's/^\(([a-zA-Z]) \)\?\(\d\{2,4\}-\d\{2\}-\d\{2\} \)\?/\1' . s:get_current_date() . ' /'