diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-07-24 21:21:49 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-07-24 21:21:49 +0100 |
| commit | 003cb8dfea517e5d1dfbfc844e875ce2995b6e74 (patch) | |
| tree | 830a7d20efa155861846a07d204a80394fcb49f6 /src/buffer.hh | |
| parent | a95937918d243a6811a37f59a80ef8665896122a (diff) | |
| parent | e3bf01d1f9063fa25ae0f0b104eb1539d0e941b6 (diff) | |
Merge remote-tracking branch 'lenormf/readonly-mode'
Diffstat (limited to 'src/buffer.hh')
| -rw-r--r-- | src/buffer.hh | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/buffer.hh b/src/buffer.hh index 98806296..e84c14e0 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -101,12 +101,13 @@ class Buffer : public SafeCountable, public OptionManagerWatcher, public Scope public: enum class Flags { - None = 0, - File = 1 << 0, - New = 1 << 1, - Fifo = 1 << 2, - NoUndo = 1 << 3, - Debug = 1 << 4 + None = 0, + File = 1 << 0, + New = 1 << 1, + Fifo = 1 << 2, + NoUndo = 1 << 3, + Debug = 1 << 4, + ReadOnly = 1 << 5, }; Buffer(String name, Flags flags, StringView data = {}, |
