Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

annotate: do not use selection menu if selection is empty

Changeset f0f14d96fb94

Parent f15d1b7f3c46

by Steve Borho

Changes to one file · Browse files at f0f14d96fb94 Showing diff from parent f15d1b7f3c46 Diff from another changeset...

 
109
110
111
112
 
 
113
114
115
 
109
110
111
 
112
113
114
115
116
@@ -109,7 +109,8 @@
    # check if the user has opened a menu on a text selection   c = self.textCursor() - if cursor.position() >= c.selectionStart() and \ + selection = c.selection().toPlainText() + if selection and cursor.position() >= c.selectionStart() and \   cursor.position() <= c.selectionEnd():   selection = c.selection().toPlainText()   def sorig():