summaryrefslogtreecommitdiff
path: root/src/buffer_utils.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2016-11-14 13:59:33 +0000
committerMaxime Coste <frrrwww@gmail.com>2016-11-14 19:39:35 +0000
commitb3ba769220aad0a3ac2a969d43c58396b3753aa7 (patch)
treefb01b5f5e8cd5260ea23aff309bcdcf9ba017f94 /src/buffer_utils.hh
parentcb074793a0af099754a7fba9c2a5755bd2130d31 (diff)
Propagate the hooks disabled state through prompt, menu, and command execution
Maintain it as well during buffer creation even if the hooks are not executed in client context. Fixes #818
Diffstat (limited to 'src/buffer_utils.hh')
-rw-r--r--src/buffer_utils.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/buffer_utils.hh b/src/buffer_utils.hh
index 7e3f8ac3..58443062 100644
--- a/src/buffer_utils.hh
+++ b/src/buffer_utils.hh
@@ -76,8 +76,10 @@ ByteCount get_byte_to_column(const Buffer& buffer, ColumnCount tabstop,
DisplayCoord coord);
Buffer* create_fifo_buffer(String name, int fd, bool scroll = false);
-Buffer* open_file_buffer(StringView filename);
-Buffer* open_or_create_file_buffer(StringView filename);
+Buffer* open_file_buffer(StringView filename,
+ Buffer::Flags flags = Buffer::Flags::None);
+Buffer* open_or_create_file_buffer(StringView filename,
+ Buffer::Flags flags = Buffer::Flags::None);
void reload_file_buffer(Buffer& buffer);
void write_to_debug_buffer(StringView str);