aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer_defs.h
diff options
context:
space:
mode:
authorRom Grk <romgrk.cc@gmail.com>2020-11-02 02:11:22 -0500
committerRom Grk <romgrk.cc@gmail.com>2020-11-07 19:02:52 -0500
commit24db59ca8fc6f2f5f96ad71d83c265170bc341db (patch)
treedbeaeeec0ceab6e27d47bf42c8acedb4e7543014 /src/nvim/buffer_defs.h
parent643f4a178751df34b27189f7aebea313b17bad3b (diff)
downloadrneovim-24db59ca8fc6f2f5f96ad71d83c265170bc341db.tar.gz
rneovim-24db59ca8fc6f2f5f96ad71d83c265170bc341db.tar.bz2
rneovim-24db59ca8fc6f2f5f96ad71d83c265170bc341db.zip
feat: implement BufModified autocmd
Diffstat (limited to 'src/nvim/buffer_defs.h')
-rw-r--r--src/nvim/buffer_defs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h
index 0b89dff92f..a72fe69425 100644
--- a/src/nvim/buffer_defs.h
+++ b/src/nvim/buffer_defs.h
@@ -541,6 +541,8 @@ struct file_buffer {
int b_changed; // 'modified': Set to true if something in the
// file has been changed and not written out.
+ bool b_changed_notified; // if the BufModified autocmd has been triggered
+ // since the last time b_changed was modified
/// Change-identifier incremented for each change, including undo.
///