#9 not modified after undo

closed
5
2001-04-25
2001-04-19
No

hello

there seems to be a conceptual bug in joe, I couln't
fix it in several hours :(

you edit a file, then save it at one point. You keep
on editing it, save at another point, then do an undo
to the first save point. This time the file really
should be marked as Modified, since the content in the
editor differs from the content on the disk. However,
here joe doesn't mark this file as Modified, and ^C
simply quits without a warning and you lose the result
of your undo operation.

bye
egmont

Discussion

  • Egmont Koblinger

    Logged In: YES
    user_id=79382

    Sorry, forgot about the technical details. As I remember
    joe stores the undo operations in a list where each item
    has a bit telling whether the status is modified here. This
    is a stupid thing since at most one state can be non-
    modified. Therefore this implementation should be changed
    to something like one pointer pointing to the only non-
    modified state in the undo/redo history, or having a value
    of NULL if there is no non-modified state.

     
  • Marek Grac

    Marek Grac - 2001-04-19
    • assigned_to: nobody --> marx_sk
     
  • Marek Grac

    Marek Grac - 2001-04-25

    Logged In: YES
    user_id=134000

    hi,

    this error is now solved by patch joe-2.9.6--undo.patch
    which is available in section Patches.

    Marx

     
  • Marek Grac

    Marek Grac - 2001-04-25
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks