On Mon, May 15, 2006 11:28 am, Matt Finnicum wrote:
Hello!
Patch updated w/ Dimi Paun's advice (using #define's for the default and max values), and slightly cleaned up.
Well, not quite (maybe you've sent the wrong patch):
+ case EM_SETUNDOLIMIT: + { + if ((int)wParam < 0) + editor->nUndoLimit = 100; + else if ((int)wParam > 10000) + /* This should be high enough. it keeps wine from getting killed + from hogging memory. Windows allocates all this memory at once, so + no program would realisticly set a value this high */ + editor->nUndoLimit = 10000; + else + editor->nUndoLimit = wParam; +