After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 634378 - Allow cut-and-paste of results
Allow cut-and-paste of results
Status: RESOLVED FIXED
Product: reinteract
Classification: Other
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: reinteract-maint
reinteract-maint
Depends on:
Blocks:
 
 
Reported: 2010-11-09 01:27 UTC by Robert Schroll
Modified: 2011-09-11 19:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch (1.60 KB, patch)
2010-11-09 01:27 UTC, Robert Schroll
committed Details | Review

Description Robert Schroll 2010-11-09 01:27:47 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.
Comment 1 Owen Taylor 2011-09-11 19:14:42 UTC
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)