mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-25 12:36:11 +03:00
Replace C-style operators with their alphabetical equivalent
This commit is contained in:
parent
ef82c496eb
commit
e3bf01d1f9
@ -79,7 +79,7 @@ void BufferManager::backup_modified_buffers()
|
||||
for (auto& buf : m_buffers)
|
||||
{
|
||||
if ((buf->flags() & Buffer::Flags::File) and buf->is_modified()
|
||||
and !(buf->flags() & Buffer::Flags::ReadOnly))
|
||||
and not (buf->flags() & Buffer::Flags::ReadOnly))
|
||||
write_buffer_to_backup_file(*buf);
|
||||
}
|
||||
}
|
||||
|
@ -242,7 +242,7 @@ void write_buffer(const ParametersParser& parser, Context& context, const ShellC
|
||||
// if the buffer is in read-only mode and we try to save it directly
|
||||
// or we try to write to it indirectly using e.g. a symlink, throw an error
|
||||
if ((context.buffer().flags() & Buffer::Flags::ReadOnly)
|
||||
&& (parser.positional_count() == 0 || real_path(parser[0]) == buffer.name()))
|
||||
and (parser.positional_count() == 0 or real_path(parser[0]) == buffer.name()))
|
||||
throw runtime_error("cannot overwrite the buffer when in readonly mode");
|
||||
|
||||
auto filename = parser.positional_count() == 0 ?
|
||||
|
Loading…
Reference in New Issue
Block a user