Merge branch 'master' of gitlab.com:dbeniamine/todo.txt-vim into github

This commit is contained in:
David Beniamine
2019-02-10 18:17:16 +01:00
3 changed files with 23 additions and 2 deletions

17
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,17 @@
test-vim-latest:
image: thinca/vim:v7.4
script:
- cd tests
- bash runtests.sh
test-vim-7.4:
image: thinca/vim:v7.4
script:
- cd tests
- bash runtests.sh
test-neovim:
image: lambdalisue/neovim-ci
script:
- cd tests
- bash runtests.sh

View File

@@ -102,7 +102,11 @@ endfunction
function! todo#MarkAsDone(status) function! todo#MarkAsDone(status)
call todo#CreateNewRecurrence(1) call todo#CreateNewRecurrence(1)
exec ':s/\C^(\([A-Z]\))\(.*\)/\2 pri:\1/e' if get(g:, 'TodoTxtStripDoneItemPriority', 0)
exec ':s/\C^(\([A-Z]\))\(.*\)/\2/e'
else
exec ':s/\C^(\([A-Z]\))\(.*\)/\2 pri:\1/e'
endif
if a:status!='' if a:status!=''
exec 'normal! I'.a:status.' ' exec 'normal! I'.a:status.' '
endif endif

View File

@@ -1,4 +1,4 @@
#/bin/bash #!/bin/bash
REPO_TOP=$(git rev-parse --show-toplevel) REPO_TOP=$(git rev-parse --show-toplevel)
cd "${REPO_TOP}" cd "${REPO_TOP}"