DTEDITORUNDOEDIT(3)
π NAME π
okay so welcome to the DtEditorUndoEdit library call page, bestie π
β this is the one where you hit undo on a DtEditor widget and the text goes back to before your last edit. Iconic, honestly.
DtEditorUndoEditβ undo the last edit made to the text in aDtEditorwidget.
β¨ SYNOPSIS β¨
#include &<Dt/Editor.h>
Boolean DtEditorUndoEdit(
Widget widget);
No cap, that's the whole signature π«Ά.
π¦ DESCRIPTION π¦
The DtEditorUndoEdit function undoes the last change (deletion or insertion) made to the text in a DtEditor widget. A change consists of either a set of consecutive insertions, or a set of consecutive deletions followed by up to one set of consecutive insertions.
Let's get into what consecutive means here, because she's specific π:
- An insertion is consecutive if there have been no intervening deletions, and it is continuing forward from the same point.
- A deletion is consecutive if there have been no intervening insertions, and its start or end position is coincidental with the last deletion (that is, the deletion is continuing from the same point, either forward or backward).
Undoing an edit once restores the original text. Undoing an edit twice restores the last change. That's the whole timeline situation πβ¨.
The widget argument specifies the DtEditor widget ID.
For a complete definition of the DtEditor widget and its associated resources, see DtEditor(3).
π RETURN VALUE π
Upon successful completion, the DtEditorUndoEdit function returns True; otherwise, if there is no pending undo it returns False.
π SEE ALSO π
Dt/Editor.hβDtEditor(5),DtEditor(3).
okay bye bestie π«Ά β source/version corner: the library call section; date: not listed on the footer, so she's timeless π
πΈ.
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms