mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
'inccommand': buftype=nofile, restore cursor/view
- Use a standard scratch buffer instead of a new 'buftype', functions like curbufIsChanged() already have special handling for scratch bufs. - Cleanup some stuff from the previous merge. - Add support for :smagic, :snomagic. Closes #5578
This commit is contained in:
@@ -1685,7 +1685,8 @@ void u_redo(int count)
|
||||
u_doit(count, false);
|
||||
}
|
||||
|
||||
/// undo, and remove the undo branch from the undo tree.
|
||||
/// Undo and remove the branch from the undo tree.
|
||||
/// Also moves the cursor (as a "normal" undo would).
|
||||
bool u_undo_and_forget(int count)
|
||||
{
|
||||
if (curbuf->b_u_synced == false) {
|
||||
|
Reference in New Issue
Block a user