chiark
/
gitweb
/
~mdw
/
tig
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3cc9a4d
)
Add "Hash" key name mapped to "#"; Don't use ";" as a comment character
author
Jonas Fonseca
<fonseca@diku.dk>
Wed, 14 Jun 2006 20:27:44 +0000
(22:27 +0200)
committer
Jonas Fonseca
<fonseca@antimatter.localdomain>
Wed, 14 Jun 2006 20:27:44 +0000
(22:27 +0200)
tig.c
patch
|
blob
|
blame
|
history
diff --git
a/tig.c
b/tig.c
index a3b92c851d5b43bb98dd597344099a0d907d1ecd..5ed2bb1c5113b20cc6ec03cbee810ef8fab44bf2 100644
(file)
--- a/
tig.c
+++ b/
tig.c
@@
-770,6
+770,7
@@
static struct key key_table[] = {
{ "Down", KEY_DOWN },
{ "Insert", KEY_IC },
{ "Delete", KEY_DC },
{ "Down", KEY_DOWN },
{ "Insert", KEY_IC },
{ "Delete", KEY_DC },
+ { "Hash", '#' },
{ "Home", KEY_HOME },
{ "End", KEY_END },
{ "PageUp", KEY_PPAGE },
{ "Home", KEY_HOME },
{ "End", KEY_END },
{ "PageUp", KEY_PPAGE },
@@
-1046,7
+1047,7
@@
read_option(char *opt, int optlen, char *value, int valuelen)
/* Check for comment markers, since read_properties() will
* only ensure opt and value are split at first " \t". */
/* Check for comment markers, since read_properties() will
* only ensure opt and value are split at first " \t". */
- optlen = strcspn(opt, "#
;
");
+ optlen = strcspn(opt, "#");
if (optlen == 0)
return OK;
if (optlen == 0)
return OK;
@@
-1056,7
+1057,7
@@
read_option(char *opt, int optlen, char *value, int valuelen)
} else {
/* Look for comment endings in the value. */
} else {
/* Look for comment endings in the value. */
- int len = strcspn(value, "#
;
");
+ int len = strcspn(value, "#");
if (len < valuelen) {
valuelen = len;
if (len < valuelen) {
valuelen = len;