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:
2fcf540
)
Tab size short option changes from -t to -b
author
Jonas Fonseca
<fonseca@diku.dk>
Sun, 28 May 2006 01:02:19 +0000
(
03:02
+0200)
committer
Jonas Fonseca
<fonseca@antimatter.localdomain>
Sun, 28 May 2006 01:02:19 +0000
(
03:02
+0200)
tig.c
patch
|
blob
|
blame
|
history
diff --git
a/tig.c
b/tig.c
index b08d3f74b945a71960871abb82bd2e17b2ff3537..0237cb095966f8e684f52f8850a40039511ac744 100644
(file)
--- a/
tig.c
+++ b/
tig.c
@@
-293,14
+293,14
@@
parse_options(int argc, char *argv[])
}
/**
}
/**
- * -
t
[NSPACES], --tab-size[=NSPACES]::
+ * -
b
[NSPACES], --tab-size[=NSPACES]::
* Set the number of spaces tabs should be expanded to.
**/
* Set the number of spaces tabs should be expanded to.
**/
- if (!strncmp(opt, "-
t
", 2) ||
+ if (!strncmp(opt, "-
b
", 2) ||
!strncmp(opt, "--tab-size", 10)) {
char *num = opt;
!strncmp(opt, "--tab-size", 10)) {
char *num = opt;
- if (opt[1] == '
t
') {
+ if (opt[1] == '
b
') {
num = opt + 2;
} else if (opt[STRING_SIZE("--tab-size")] == '=') {
num = opt + 2;
} else if (opt[STRING_SIZE("--tab-size")] == '=') {