diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-02-19 03:48:20 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-02-26 11:29:02 +0100 |
commit | fedb8443d58af82f7603164395ff253b94c913ae (patch) | |
tree | 81d71e8d779926db2954e2970c237759e242625e /src/nvim/undo.c | |
parent | 7ea81fe443369382b3ec8c9cfb5a80bcbcbe40bd (diff) | |
download | rneovim-fedb8443d58af82f7603164395ff253b94c913ae.tar.gz rneovim-fedb8443d58af82f7603164395ff253b94c913ae.tar.bz2 rneovim-fedb8443d58af82f7603164395ff253b94c913ae.zip |
terminal: Allow undo and 'modifiable'.
Partial step towards #2637. Will crash if *all* lines are deleted.
Closes #2607
References #5431
Diffstat (limited to 'src/nvim/undo.c')
-rw-r--r-- | src/nvim/undo.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c index 8cedfcb905..82ae0e8cf5 100644 --- a/src/nvim/undo.c +++ b/src/nvim/undo.c @@ -305,14 +305,9 @@ bool undo_allowed(void) return true; } -/* - * Get the undolevle value for the current buffer. - */ +/// Get the 'undolevels' value for the current buffer. static long get_undolevel(void) { - if (curbuf->terminal) { - return -1; - } if (curbuf->b_p_ul == NO_LOCAL_UNDOLEVEL) return p_ul; return curbuf->b_p_ul; |