hit9 / todo.c

Command line lightweight todo tool with readable storage , written in C.
BSD 2-Clause "Simplified" License
132 stars 23 forks source link

cwd todo.txt not used #2

Closed bibby closed 11 years ago

bibby commented 11 years ago

The usage states

Note: todo will always use ./todo.txt prior to ~/todo.txt for persistent storage.

However, that doesn't appear to be working for me that way.

bibby@champ:~/issue-test$ touch todo.txt
bibby@champ:~/issue-test$ todo test one two three
bibby@champ:~/issue-test$ cat todo.txt 
bibby@champ:~/issue-test$ cat ~/todo.txt 
- [ ] test one two three

Using Ubuntu 12.04

nutsi commented 11 years ago

You can patch very simply. Going in src/main.c and edit line 84 the length of string c_todo_txt from '10' to '11'. With a lenght of '10', you can't store the '\0'. This is the problem.

But normally, if you pull your repo, the problem was solved in an another commit.

regards,

hit9 commented 11 years ago

+1. I changed 10 to 11 in the later commit. you can pull down the latest version

bibby commented 11 years ago

Confirmed working as expected. Having multiple scattered todos will help me a lot. Thanks!