Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid changing 'undolevels' when creating an undo break.
Setting the 'undolevels' option to any value has the side effect of creating an undo break. UltiSnips uses the below construct to create an undo break with the goal of leaving 'undolevels' unmodified: ``` :let &undolevels = &undolevels ``` However, if a local 'undolevels' option has been set to a different value than the global option, the assignment above has the unintended effect of changing the global 'undolevels' value to the local value. Use `&g:undolevels` to explicitly read and modify only the global option value, avoiding undesired option changes.
- Loading branch information