Index: gtags-cscope/gtags-cscope.c =================================================================== RCS file: /sources/global/global/gtags-cscope/gtags-cscope.c,v retrieving revision 1.14 diff -u -r1.14 gtags-cscope.c --- gtags-cscope/gtags-cscope.c 3 Feb 2010 12:01:08 -0000 1.14 +++ gtags-cscope/gtags-cscope.c 1 Apr 2010 10:11:32 -0000 @@ -329,17 +329,17 @@ strbuf_clear(command); strbuf_puts(command, global_path); strbuf_puts(command, " --result=cscope"); - if (opt || ignore_case) { - if (opt == FROM_HERE) { - strbuf_puts(command, " --from-here="); - strbuf_puts(command, context); - } else { - strbuf_puts(command, " -"); - strbuf_putc(command, opt); - } - if (ignore_case) - strbuf_puts(command, " --ignore-case"); + + if (opt == FROM_HERE) { + strbuf_puts(command, " --from-here="); + strbuf_puts(command, context); + } else if (opt) { + strbuf_puts(command, " -"); + strbuf_putc(command, opt); } + if (ignore_case) + strbuf_puts(command, " --ignore-case"); + strbuf_putc(command, ' '); strbuf_putc(command, QUOTE); strbuf_puts(command, arg);