mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user