diff --git a/doc/ChangeLog b/doc/ChangeLog index 8da7488..7306b39 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,7 @@ +2007-05-24 Jörgen Stenarson + * Fixing bug in copy_selection_to_clipboard. Didn't work + when selection started at beginning of line + 2007-05-24 Jörgen Stenarson * Additions to manual diff --git a/pyreadline/lineeditor/lineobj.py b/pyreadline/lineeditor/lineobj.py index 3969e39..fdbcd4d 100644 --- a/pyreadline/lineeditor/lineobj.py +++ b/pyreadline/lineeditor/lineobj.py @@ -717,7 +717,7 @@ class ReadLineTextBuffer(TextLine): def copy_selection_to_clipboard(self): # () '''Copy the text in the region to the windows clipboard.''' - if self.enable_win32_clipboard and self.enable_selection and self.selection_mark>0: + if self.enable_win32_clipboard and self.enable_selection and self.selection_mark>=0: selection_mark=min(self.selection_mark,len(self.line_buffer)) cursor=min(self.point,len(self.line_buffer)) if self.selection_mark==-1: