This is the finalization of the change started with
3c0ca8c18881.
Fakevim undo was broken due to behavioural changes in QTextDocument
in Qt 4.6. Now that QTextDocument has gotten new accessors to the
needed (and previously available) data we can use it.
(cherry picked from commit
0bc1095b70bf698e43e5a5a74a06027aa2ece2e3)
#include <climits>
// FIXME: Restrict this as soon the availableUndoSteps has been merged to Qt
-//#if QT_VERSION < 0x040600
+#if QT_VERSION < 0x040600
#define availableUndoSteps revision
-//#endif
+#endif
//#define DEBUG_KEY 1
#if DEBUG_KEY