rpdillon / todotxt.el

A todo.txt client for Emacs
55 stars 18 forks source link

Filtering causes wrong line to be edited #4

Closed rpdillon closed 7 years ago

rpdillon commented 11 years ago

Line numbers get messed up after filtering and editing something. Consider the following example:

(A) Test1 @a
(B) Test2 @a
(B) Test3 @b

Now suppose I filter the file for "@a". Then, correctly, the first two lines remain. Now I edit the first line "Test1" and set the context to "@b". The line correctly disappears from the filtered view and the second line "Test2" moves up to first place. When I now hit 'e' to edit, however, I can only edit the disappeared line "Test1", even though that line is no longer part of the view.

rpdillon commented 7 years ago

This should be fixed on master now.