*Release date: XX-XXX-2005*
+- Mac line endings were incorrect when pasting code from some browsers
+ when using X11 and the Fink distribution. Python Bug 1263656.
+
- <Enter> when cursor is on a previous command retrieves that command. Instead
of replacing the input line, the previous command is now appended to the
input line. Indentation is preserved, and undo is enabled.
self.flist = self.editwin.flist
self.root = self.flist.root
- def check_module_event(self, event):
+ def check_module_event(self, event=None):
filename = self.getfilename()
if not filename:
return
f.close()
if '\r' in source:
source = re.sub(r"\r\n", "\n", source)
+ source = re.sub(r"\r", "\n", source)
if source and source[-1] != '\n':
source = source + '\n'
text = self.editwin.text
add that directory to its sys.path if not already included.
"""
- filename = self.getfilename()
- if not filename:
- return
- if not self.tabnanny(filename):
- return
- code = self.checksyntax(filename)
+ code = self.check_module_event(event)
if not code:
return
shell = self.shell