[no subject]
=====================================================
I like a new feature of specially displayed tabs
and trailing spaces, but sometimes they are getting
in the way. For example, when I want to cut-and-paste
with the mouse, I usually do not want it.
Also, inevitably there will be users which actively
dislike this feature. It's better for the project
if it supports those users too.
The most comprehensive solution would be two-fold:
Add a config option for it in F9->Options->General
(takes care of those users who hate whitespace
highlighting and want it off by default), and
Add a menu item to F9->Edit to toggle whitespace
highlighting temporarily with a key combination.
=====================================================
I discovered that this is already conditionalzed in the code,
just not tweakable by config dialog.
6.patch fixes it, and also it makes _trailing_ tabs
to show up as tabs if visible_tabs = 0 but visible_tws = 1.
Please apply.
7.patch is follow-up whitespace and formatting cleanup,
no code changes. Apply it if it looks ok to you.
It does not relate to the fix per se, just catering to my
perfectionist itch.
Signed-off-by: Denys Vlasenko <vda linux googlemail com>
--
vda
--001636c5b6da84d2ff046da4f3b2
Content-Type: text/x-patch; charset=US-ASCII; name="6.patch"
Content-Disposition: attachment; filename="6.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_fwm2z1kj0
ZGlmZiAtZCAtdXJwTiBtYy41L2VkaXQvZWRpdGRyYXcuYyBtYy42L2VkaXQvZWRpdGRyYXcuYwot
LS0gbWMuNS9lZGl0L2VkaXRkcmF3LmMJMjAwOS0wNi0yOSAxNDowNjozNS4wMDAwMDAwMDAgKzAy
MDAKKysrIG1jLjYvZWRpdC9lZGl0ZHJhdy5jCTIwMDktMDctMDEgMTU6MjE6NTMuMDAwMDAwMDAw
ICswMjAwCkBAIC00NDIsNyArNDQyLDcgQEAgZWRpdF9kcmF3X3RoaXNfbGluZSAoV0VkaXQgKmVk
aXQsIGxvbmcgYgogCQljYXNlICdcdCc6CiAJCSAgICBpID0gVEFCX1NJWkUgLSAoKGludCkgY29s
ICUgVEFCX1NJWkUpOwogCQkgICAgY29sICs9IGk7Ci0JCSAgICBpZiAodXNlX2NvbG9ycyAmJiB2
aXNpYmxlX3RhYnMpIHsKKwkJICAgIGlmICh1c2VfY29sb3JzICYmICh2aXNpYmx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AqLwogICAgIGVkaXRfbG9hZF91c2VyX21h
cCAod2VkaXQpOwogfQo=
--001636c5b6da84d2ff046da4f3b2
Content-Type: text/x-patch; charset=US-ASCII; name="7.patch"
Content-Disposition: attachment; filename="7.patch"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_fwm2z5as1
ZGlmZiAtZCAtdXJwTiBtYy42L2VkaXQvZWRpdGRyYXcuYyBtYy43L2VkaXQvZWRpdGRyYXcuYwot
LS0gbWMuNi9lZGl0L2VkaXRkcmF3LmMJMjAwOS0wNy0wMSAxNToyMTo1My4wMDAwMDAwMDAgKzAy
MDAKKysrIG1jLjcvZWRpdC9lZGl0ZHJhdy5jCTIwMDktMDctMDEgMTU6MjA6NTQuMDAwMDAwMDAw
ICswMjAwCkBAIC0zMzAsMjcgKzMzMCwyNSBAQCBwcmludF90b193aWRnZXQgKFdFZGl0ICplZGl0
LCBsb25nIHJvdywgCiAjZW5kaWYKIAkJICAgIHNldF9jb2xvciAoRURJVE9SX1dISVRFU1BBQ0Vf
Q09MT1IpOwogCSAgICB9CisJfSBlbHNlIGlmIChzdHlsZSAmIE1PRF9CT0xEKSB7CisJICAgIHNl
dF9jb2xvciAoRURJVE9SX0JPTERfQ09MT1IpOworCX0gZWxzZSBpZiAoc3R5bGUgJiBNT0RfTUFS
S0VEKSB7CisJICAgIHNldF9jb2xvciAoRURJVE9SX01BUktFRF9DT0xPUik7CiAJfSBlbHNlIHsK
LQkgICAgaWYgKHN0eWxlICYgTU9EX0JPTEQpIHsKLQkJc2V0X2NvbG9yIChFRElUT1JfQk9MRF9D
T0xPUik7Ci0JICAgIH0gZWxzZSBpZiAoc3R5bGUgJiBNT0RfTUFSS0VEKSB7Ci0JCXNldF9jb2xv
ciAoRURJVE9SX01BUktFRF9DT0xPUik7CisJICAgIGxvd2xldmVsX3NldF9jb2xvciAoY29sb3Ip
OworCX0KKwlpZiAoIHRleHRjaGFyID4gMjU1ICkgeworCSAgICBpbnQgcmVzID0gZ191bmljaGFy
X3RvX3V0ZjggKHRleHRjaGFyLCAoY2hhciAqKXN0cik7CisJICAgIGlmICggcmVzID09IDAgKSB7
CisJCXN0clswXSA9ICcuJzsKKwkJc3RyWzFdID0gJ1wwJzsKIAkgICAgfSBlbHNlIHsKLQkJbG93
bGV2ZWxfc2V0X2NvbG9yIChjb2xvcik7CisJCXN0cltyZXNdID0gJ1wwJzsKIAkgICAgfQorCSAg
ICBhZGRzdHIgKChjaGFyICopc3RyKTsKKwl9IGVsc2UgeworCSAgICBhZGRjaCh0ZXh0Y2hhcik7
CiAJfQotCWlmICggdGV4dGNoYXIgPiAyNTUgKSB7Ci0gICAgICAgICAgICBpbnQgcmVzID0gZ191
bmljaGFyX3RvX3V0ZjggKHRleHRjaGFyLCAoY2hhciAqKXN0cik7Ci0gICAgICAgICAgICBpZiAo
IHJlcyA9PSAwICkgewotICAgICAgICAgICAgICAgIHN0clswXSA9ICcuJzsKLSAgICAgICAgICAg
ICAgICBzdHJbMV0gPSAnXDAnOwotICAgICAgICAgICAgfSBlbHNlIHsKLSAgICAgICAgICAgICAg
ICBzdHJbcmVzXSA9ICdcMCc7Ci0gICAgICAgICAgICB9Ci0gICAgICAgICAgICBhZGRzdHIgKChj
aGFyICopc3RyKTsKLSAgICAgICAgfSBlbHNlIHsKLSAgICAgICAgICAgIGFkZGNoKHRleHRjaGFy
KTsKLSAgICAgICAgfQogCXArKzsKICAgICB9CiB9CkBAIC0zODQsMjAgKzM4MiwyMCBAQCBlZGl0
X2RyYXdfdGhpc19saW5lIChXRWRpdCAqZWRpdCwgbG9uZyBiCiAgICAgYzIgPSBtYXggKGVkaXQt
PmNvbHVtbjEsIGVkaXQtPmNvbHVtbjIpOwogCiAgICAgaWYgKCBvcHRpb25fbGluZV9zdGF0ZSAp
IHsKLSAgICAgICAgY3VyX2xpbmUgPSBlZGl0LT5zdGFydF9saW5lICsgcm93OwotICAgICAgICBp
ZiAoIGN1cl9saW5lIDw9IGVkaXQtPnRvdGFsX2xpbmVzICkgewotICAgICAgICAgICAgZ19zbnBy
aW50ZiAobGluZV9zdGF0LCBMSU5FX1NUQVRFX1dJRFRIICsgMSwgIiU3aSAiLCBjdXJfbGluZSAr
IDEpOwotICAgICAgICB9IGVsc2UgewotICAgICAgICAgICAgbWVtc2V0KGxpbmVfc3RhdCwgJyAn
LCBMSU5FX1NUQVRFX1dJRFRIKTsKLSAgICAgICAgICAgIGxpbmVfc3RhdFtMSU5FX1NUQVRFX1dJ
RFRIXSA9ICdcMCc7Ci0gICAgICAgIH0KKwljdXJfbGluZSA9IGVkaXQtPnN0YXJ0X2xpbmUgKyBy
b3c7CisJaWYgKCBjdXJfbGluZSA8PSBlZGl0LT50b3RhbF9saW5lcyApIHsKKwkgICAgZ19zbnBy
aW50ZiAobGluZV9zdGF0LCBMSU5FX1NUQVRFX1dJRFRIICsgMSwgIiU3aSAiLCBjdXJfbGluZSAr
IDEpOworCX0gZWxzZSB7CisJICAgIG1lbXNldChsaW5lX3N0YXQsICcgJywgTElORV9TVEFURV9X
SURUSCk7CisJICAgIGxpbmVfc3RhdFtMSU5FX1NUQVRFX1dJRFRIXSA9ICdcMCc7CisJfQogICAg
IH0KIAogICAgIGlmIChjb2wgKyAxNiA+IC1lZGl0LT5zdGFydF9jb2wpIHsKIAlldmFsX21hcmtz
IChlZGl0LCAmbTEsICZtMik7CiAKIAlpZiAocm93IDw9IGVkaXQtPnRvdGFsX2xpbmVzIC0gZWRp
dC0+c3RhcnRfbGluZSkgewotCQlsb25nIHR3cyA9IDA7CisJICAgIGxvbmcgdHdzID0gMDsKIAkg
ICAgaWYgKHVzZV9jb2xvcnMgJiYgdmlzaWJsZV90d3MpIHsKIAkJdHdzID0gZWRpdF9lb2wgKGVk
aXQsIGIpOwogCQl3aGlsZSAodHdzID4gYiAmJiAoKGMgPSBlZGl0X2dldF9ieXRlIChlZGl0LCB0
d3MgLSAxKSkgPT0gJyAnCg==
--001636c5b6da84d2ff046da4f3b2--
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]