forked from qt-creator/qt-creator
fakevim: fix undo() behaviour
This is the finalization of the change started with 3c0ca8c188.
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.
This commit is contained in:
@@ -79,9 +79,9 @@
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user