Commit 8d80e227 authored by Richard M. Stallman's avatar Richard M. Stallman

(decode_mode_spec): %+ makes % for unmodified RO buffer.

parent c806d99e
......@@ -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':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment