mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
terminal: Allow undo and 'modifiable'.
Partial step towards #2637. Will crash if *all* lines are deleted. Closes #2607 References #5431
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user