mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
updated for version 7.4.396
Problem: When 'clipboard' is "unnamed", :g/pat/d is very slow. (Praful) Solution: Only set the clipboard after the last delete. (Christian Brabandt)
This commit is contained in:
@@ -5514,7 +5514,15 @@ ex_global(eap)
|
||||
smsg((char_u *)_("Pattern not found: %s"), pat);
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef FEAT_CLIPBOARD
|
||||
start_global_changes();
|
||||
#endif
|
||||
global_exe(cmd);
|
||||
#ifdef FEAT_CLIPBOARD
|
||||
end_global_changes();
|
||||
#endif
|
||||
}
|
||||
|
||||
ml_clearmarked(); /* clear rest of the marks */
|
||||
vim_regfree(regmatch.regprog);
|
||||
|
Reference in New Issue
Block a user