From 74f83ee6af485697067aeee6392f2e45556bacee Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Wed, 14 Jun 2006 22:27:44 +0200 Subject: [PATCH] Add "Hash" key name mapped to "#"; Don't use ";" as a comment character --- tig.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tig.c b/tig.c index a3b92c8..5ed2bb1 100644 --- a/tig.c +++ b/tig.c @@ -770,6 +770,7 @@ static struct key key_table[] = { { "Down", KEY_DOWN }, { "Insert", KEY_IC }, { "Delete", KEY_DC }, + { "Hash", '#' }, { "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". */ - optlen = strcspn(opt, "#;"); + optlen = strcspn(opt, "#"); 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. */ - int len = strcspn(value, "#;"); + int len = strcspn(value, "#"); if (len < valuelen) { valuelen = len; -- 2.30.2