Skip to content

Commit

Permalink
Fix done.txt naming bug
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
isti03 committed Dec 12, 2022
1 parent ed9d639 commit afd4986
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 afd4986

Please sign in to comment.