SourceBuffer.setMaxUndoLevels

Sets the number of undo levels for user actions the buffer will track. If the number of user actions exceeds the limit set by this function, older actions will be discarded. If max_undo_levels is -1, no limit is set.

class SourceBuffer
void
setMaxUndoLevels

Parameters

maxUndoLevels int

the desired maximum number of undo levels.

Meta