mirror of
https://github.com/freitass/todo.txt-vim.git
synced 2025-11-18 22:53:39 -05:00
Compare commits
2 Commits
master
...
61d9b6cf97
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
61d9b6cf97 | ||
|
|
d8ff667b66 |
@@ -77,6 +77,9 @@ function! todo#txt#remove_completed()
|
||||
let l:todo_done_filename = 'done.txt'
|
||||
endif
|
||||
let l:done_file = substitute(substitute(l:todo_file, 'todo.txt$', l:todo_done_filename, ''), 'Todo.txt$', l:todo_done_filename, '')
|
||||
if exists("g:todo_done_subdir")
|
||||
let l:done_file = substitute(l:done_file, l:target_dir, l:target_dir . '/' . g:todo_done_subdir, '')
|
||||
endif
|
||||
if !filewritable(l:done_file) && !filewritable(l:target_dir)
|
||||
echoerr "Can't write to file '" . l:todo_done_filename . "'"
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user