Changeset 2410

Show
Ignore:
Timestamp:
05/29/07 13:04:51 (2 years ago)
Author:
jstenar
Message:

pyreadline: fix bug in copy_selection_to_clipboard. Didn't work when selection started at beginning of line.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • pyreadline/trunk/doc/ChangeLog

    r2382 r2410  
     12007-05-24 Jörgen Stenarson  <jorgen.stenarson -at- bostream.nu> 
     2    * Fixing bug in copy_selection_to_clipboard. Didn't work 
     3      when selection started at beginning of line 
     4 
    152007-05-24 Jörgen Stenarson  <jorgen.stenarson -at- bostream.nu> 
    26    * Additions to manual 
  • pyreadline/trunk/pyreadline/lineeditor/lineobj.py

    r2340 r2410  
    718718    def copy_selection_to_clipboard(self): # () 
    719719        '''Copy the text in the region to the windows clipboard.''' 
    720         if self.enable_win32_clipboard and self.enable_selection and self.selection_mark>0: 
     720        if self.enable_win32_clipboard and self.enable_selection and self.selection_mark>=0: 
    721721                selection_mark=min(self.selection_mark,len(self.line_buffer)) 
    722722                cursor=min(self.point,len(self.line_buffer))