]> git.lyx.org Git - lyx.git/blobdiff - src/update_flags.h
Make undo action no-ops when the buffer is read-only
[lyx.git] / src / update_flags.h
index af71c0e78d5f8452fbfb8647fcd853036e68fd92..517bfb62e4ee9a64e7b4c1961a087c08fd11c369 100644 (file)
@@ -29,7 +29,9 @@ namespace Update {
                SinglePar = 8,
                /// Only the inset decorations need to be redrawn, no text metrics
                /// update is needed.
-               Decoration = 16
+               Decoration = 16,
+               /// Force metrics and redraw for all buffers.
+               ForceAll = 32
        };
 
 inline flags operator|(flags const f, flags const g)
@@ -44,7 +46,7 @@ inline flags operator&(flags const f, flags const g)
 
 inline flags operator~(flags const f)
 {
-       return static_cast<flags>(~int(f));
+       return static_cast<flags>(~int(f) & 0x3f);
 }
 
 } // namespace Update