GNOME Bugzilla – Bug 634378
Allow cut-and-paste of results
Last modified: 2011-09-11 19:15:22 UTC
Created attachment 174112 [details] [review] Patch When cutting and pasting, Reinteract ignores the result. Usually, this is desired. But sometimes it would be nice to be able to copy results for use elsewhere. This patch allows copying of result text when only result text is selected.
A little tricky, but can't think of why it wouldn't work. There is one case you missed - if I select the entire result line including the newline afterwards, the result of worksheet.get_text() is "" not "\n" - I just changed the code to: # Coming up with nothing means either the user selected nothing, or the # selection was entirely within one result; in the second case, the user # wanted the result text. if text == "" or text == "\n": text = self.get_text(start, end) (Adding the comment as well)