Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/scintilla
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12412
Modified Files:
control.py
Log Message:
Use SCI_REPLACESEL instead of EM_REPLACESEL to fix a problem I still can't
explain (ie, how did EM_REPLACESEL even get to SCI_REPLACESEL now they
have different values??)
Index: control.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/scintilla/control.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** control.py 6 Sep 2007 06:47:36 -0000 1.15
--- control.py 23 Feb 2008 08:05:07 -0000 1.16
***************
*** 357,361 ****
def ReplaceSel(self, str):
buff = array.array('c', str + "\0")
! self.SendScintilla(win32con.EM_REPLACESEL, 0, buff.buffer_info()[0]);
buff = None
--- 357,361 ----
def ReplaceSel(self, str):
buff = array.array('c', str + "\0")
! self.SendScintilla(SCI_REPLACESEL, 0, buff.buffer_info()[0]);
buff = None
|