Buffer.getMaxUndoLevels
int getMaxUndoLevels() nothrowDetermines the number of undo levels the buffer will track for buffer edits.
Returns
the maximum number of possible undo levels or -1 if no limit is set.
int getMaxUndoLevels() nothrowDetermines the number of undo levels the buffer will track for buffer edits.