diff options
author | Teddy Wing | 2023-03-19 04:14:08 +0100 |
---|---|---|
committer | Teddy Wing | 2023-03-19 19:52:34 +0100 |
commit | ebf7b2e4677ac4e8cad77fc4a7efa0fc9cf39ada (patch) | |
tree | fc030d7b39860fc5840fa945f08608ec47ab1dbb /bundle/buffer-delete | |
parent | b26b4c48f6bface96ef0d365d6ed7e89f2ef199c (diff) | |
download | dotvim-ebf7b2e4677ac4e8cad77fc4a7efa0fc9cf39ada.tar.bz2 |
insert-layout: Don't remove autocmds in `InsertLayoutOn`
I assumed that I should be removing existing autocmds before adding new
ones. If you ran the `:InsertLayout` command more than once, I didn't
want old autocmds to stick around.
The line was commented out because it fails on the first call to
`:InsertLayout`, since at that point the `insert_layout` augroup doesn't
exist.
On closer inspection, however, it turns out that the old autocmds are
not retained when running `:InsertLayout` subsequent times. Rather, the
newly-defined ones are overwriting the old ones. So we don't need to
worry about removing the old autocmds before adding new ones.
Diffstat (limited to 'bundle/buffer-delete')
0 files changed, 0 insertions, 0 deletions