[gpm][DIFF] paste olny if ctrl is pressed
Lucio Maciel
abslucio@terra.com.br
Thu, 11 Apr 2002 16:03:20 -0300
This is a multi-part message in MIME format.
--Multipart_Thu__11_Apr_2002_16:03:20_-0300_081caf00
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Hello,
i have a new feature to gpm, to Paste only when CRTL is pressed, to avoid unwanted pastes...
well, dont know if this is util for you, but im useing, and im very happy with this.. :)
thanks...
Ps.: CC me, i dont subscribe the list.... :)
--
::: Lucio Maciel
::: abslucio@terra.com.br
::: Absoluta.Net :::
--Multipart_Thu__11_Apr_2002_16:03:20_-0300_081caf00
Content-Type: application/octet-stream;
name="gpm-ctrl.diff"
Content-Disposition: attachment;
filename="gpm-ctrl.diff"
Content-Transfer-Encoding: base64
ZGlmZiAtTmF1ciAtLWV4Y2x1ZGU9Y29uZmlnKiAtLWV4Y2x1ZGU9ZG9jIC4uL2dwbS0xLjIwLjAv
c3JjL2dwbS5jIC4vc3JjL2dwbS5jCi0tLSAuLi9ncG0tMS4yMC4wL3NyYy9ncG0uYwlTYXQgRmVi
IDIzIDEyOjQyOjIzIDIwMDIKKysrIC4vc3JjL2dwbS5jCVRodSBBcHIgMTEgMTU6MzQ6MjQgMjAw
MgpAQCAtNDAsNiArNDAsNyBAQAogI2luY2x1ZGUgPGxpbnV4L3Z0Lmg+ICAgICAgLyogVlRfR0VU
U1RBVEUgKi8KICNpbmNsdWRlIDxzeXMva2QuaD4gICAgICAgIC8qIEtER0VUTU9ERSAqLwogI2lu
Y2x1ZGUgPHRlcm1pb3MuaD4gICAgICAgLyogd2luc2l6ZSAqLworI2luY2x1ZGUgPHN5cy9pby5o
PiAgICAgICAgLyogaW5iICovCiAKICNpbmNsdWRlICJoZWFkZXJzL2dwbUludC5oIgogI2luY2x1
ZGUgImhlYWRlcnMvbWVzc2FnZS5oIgpAQCAtNzcsNiArNzgsNyBAQAogCiAvKiBUaGVzZSBhcmUg
b25seSB0aGUgJ2dsb2JhbC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