mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(decode_mode_spec): %+ makes % for unmodified RO buffer.
This commit is contained in:
parent
c806d99edd
commit
8d80e22752
1 changed files with 3 additions and 0 deletions
|
|
@ -2961,8 +2961,11 @@ decode_mode_spec (w, c, maxwidth)
|
|||
return "-";
|
||||
|
||||
case '+':
|
||||
/* This differs from %* only for a modified read-only buffer. */
|
||||
if (MODIFF > current_buffer->save_modified)
|
||||
return "*";
|
||||
if (!NILP (current_buffer->read_only))
|
||||
return "%";
|
||||
return "-";
|
||||
|
||||
case 's':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue