diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-02-21 15:16:48 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-02-26 11:57:52 +0100 |
commit | e7bbd35c812d338918d1c23692c70b403205fb30 (patch) | |
tree | 21dcf24c9e1c759fd9cf984c76ec40a51b94dbfc /src/nvim/undo.c | |
parent | 300eca3d301e407adadc017e71502d20a4b207e8 (diff) | |
download | rneovim-e7bbd35c812d338918d1c23692c70b403205fb30.tar.gz rneovim-e7bbd35c812d338918d1c23692c70b403205fb30.tar.bz2 rneovim-e7bbd35c812d338918d1c23692c70b403205fb30.zip |
terminal: 'scrollback'
Closes #2637
Diffstat (limited to 'src/nvim/undo.c')
-rw-r--r-- | src/nvim/undo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c index 82ae0e8cf5..c95a795587 100644 --- a/src/nvim/undo.c +++ b/src/nvim/undo.c @@ -308,8 +308,9 @@ bool undo_allowed(void) /// Get the 'undolevels' value for the current buffer. static long get_undolevel(void) { - if (curbuf->b_p_ul == NO_LOCAL_UNDOLEVEL) + if (curbuf->b_p_ul == NO_LOCAL_UNDOLEVEL) { return p_ul; + } return curbuf->b_p_ul; } |