diff options
| author | Frank LENORMAND <lenormf@gmail.com> | 2021-09-21 12:47:20 +0300 |
|---|---|---|
| committer | Frank LENORMAND <lenormf@gmail.com> | 2021-09-21 12:59:30 +0300 |
| commit | e4d6952d8cea29f2ed4178cd23397d6e09b73dec (patch) | |
| tree | 8be0d4649186cdec2757af4f09c5dfb2510be0c9 /src/client.cc | |
| parent | b3a1017a264cfea7e9ae1a374208e9b02efbda5a (diff) | |
src: Show a `readonly` modeline tag when relevant
Diffstat (limited to 'src/client.cc')
| -rw-r--r-- | src/client.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client.cc b/src/client.cc index af1c4add..09a39288 100644 --- a/src/client.cc +++ b/src/client.cc @@ -143,6 +143,8 @@ String generate_context_info(const Context& context) s += "[fifo]"; if (context.buffer().flags() & Buffer::Flags::Debug) s += "[debug]"; + if (context.buffer().flags() & Buffer::Flags::ReadOnly) + s += "[readonly]"; return s; } |
