Function UndoRedo.getVersion

Gets the version. Every time a new action is committed, the UndoRedo's version number is increased automatically. This is useful mostly to check if something changed from a saved version.

long getVersion() nothrow @nogc const;