write_buffer: consider buffer as saved only if we used it's filename
This commit is contained in:
parent
0f957b3743
commit
17f7607a30
|
@ -146,7 +146,9 @@ void write_buffer(const CommandParameters& params, Context& context)
|
||||||
: parse_filename(params[0]);
|
: parse_filename(params[0]);
|
||||||
|
|
||||||
write_buffer_to_file(buffer, filename);
|
write_buffer_to_file(buffer, filename);
|
||||||
buffer.notify_saved();
|
|
||||||
|
if (filename == buffer.name())
|
||||||
|
buffer.notify_saved();
|
||||||
}
|
}
|
||||||
|
|
||||||
void write_all_buffers(const CommandParameters& params, Context& context)
|
void write_all_buffers(const CommandParameters& params, Context& context)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user