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.
the desired maximum number of undo levels.
See Implementation
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.