Skip to content

Commit

Permalink
Fix done.txt naming bugs
Browse files Browse the repository at this point in the history
Two unreported done.txt naming bugs fixed:

1. *.Todo.txt files would use *.done.txt for the done filename

2. When a user had the ignorecase option set, the done.txt file was
   always named Done.txt, because the == operator ignores the case when
   this option is set.

The bugs were introduced in PR #73
  • Loading branch information
isti03 committed Dec 12, 2022
1 parent ed9d639 commit af61451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/todo/txt.vim
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function! todo#txt#remove_completed()
" Check for user-defined g:todo_done_filename
if exists("g:todo_done_filename")
let l:todo_done_filename = g:todo_done_filename
elseif expand('%:t') == 'Todo.txt'
elseif expand('%:t') =~# '.Todo.txt'
let l:todo_done_filename = 'Done.txt'
else
let l:todo_done_filename = 'done.txt'
Expand Down

0 comments on commit af61451

Please sign in to comment.