setEnableUndo

open fun setEnableUndo(enableUndo: Boolean)

Sets whether or not to enable undoable actions in the text buffer.

Undoable actions in this context are changes to the text content of the buffer. Changes to tags and marks are not tracked.

If enabled, the user will be able to undo the last number of actions up to method@Gtk.TextBuffer.get_max_undo_levels.

See method@Gtk.TextBuffer.begin_irreversible_action and method@Gtk.TextBuffer.end_irreversible_action to create changes to the buffer that cannot be undone.

Parameters

enableUndo

true to enable undo