Sun 26 Nov 2017 10:23:37 PM UTC, comment #2:
After some testing on my end, this doesn't seem to be fixed at all. As of git 20aa167, try the following:
1. Run: ./nano --ignore --nonewlines
2. In the empty buffer, press "x". An "x" will be added at the beginning of the file, as expected.
3. Press Meta-U to undo. The "x" will disappear, but the file will still be marked as modified.
If you repeat this, but run ./nano --ignore (without --nonewlines), then undoing the addition of "x" will not put the file back the way it was due to the magicline, so that's not as much of a problem. Although the fact that undo doesn't put things back the way they were with regard to the magicline in this case is a separate problem.
There's also another example involving multibuffer support.
1. Run: ./nano --ignore --multibuffer winio.c
2. With winio.c open, press Ctrl-R and, at the prompt, insert files.c.
3. Inside files.c, press "x". An "x" will be added at the beginning of files.c, as expected.
4. Press Meta-U to undo. The "x" will disappear, but files.c will still be marked as modified.
5. Close files.c, not saving the changes.
6. Back inside winio.c, press "x". An "x" will be added at the beginning of winio.c, as expected.
7. Press Meta-U to undo. The "x" will disappear, but winio.c will still be marked as modified.
|