generate clipboard data when requested
@chpe
Submitted by Christian Persch Link to original bug (#782292)
Description
(Continued from bug 365121.)
Currently, we generate and store the data (in text or html format) when we claim the selection. This is because the ring may be modified between now and when the clipboard data is actually requested.
The problem is that this data is potentially large, and we'd also like to always put it in text and html format on the clipboard. If we did that with the pregenerated data, we'd have (over) twice as much to store.
To fix this, we should only take a 'snapshot' of the mutable text+attributes, and 'pin' the on-disk data if the selection extends to scrollback, so it doesn't get evicted when not using infinite scrollback.