summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--edit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/edit.c b/edit.c
index d63678d..34b89fe 100644
--- a/edit.c
+++ b/edit.c
@@ -163,11 +163,13 @@ static void tabComplete(uint id) {
 		return;
 	}
 
+	bool colon = (tab.len >= 2 && buf[tab.pos + tab.len - 2] == L':');
+
 	delete(false, tab.pos, tab.len);
 	tab.len = n;
 	if (wcs[0] == L'\\' || wcschr(wcs, L' ')) {
 		reserve(tab.pos, tab.len);
-	} else if (wcs[0] != L'/' && !tab.pos) {
+	} else if (wcs[0] != L'/' && (!tab.pos || colon)) {
 		tab.len += 2;
 		reserve(tab.pos, tab.len);
 		buf[tab.pos + n + 0] = L':';
>2013-04-08ui-refs.c: Refactor print_tag()Lukas Fleischer 2013-04-08ui-refs.c: Remove global header variableLukas Fleischer 2013-04-08html.c: Replace strdup() with xstrdup()Lukas Fleischer 2013-04-08Always #include corresponding .h in .c filesJohn Keeping 2013-04-08cgit.mk: fix dependency handlingJohn Keeping 2013-04-08Makefile: re-include cgit.conf in cgit.mkJohn Keeping 2013-04-08Do not unnecessarily strdup() environment variablesLukas Fleischer 2013-04-08Maŕk cgit_environment members constLukas Fleischer 2013-04-08Return const char * in cgit_{httpscheme, hosturl, rooturl}()Lukas Fleischer 2013-04-08Update git to v1.8.2.1John Keeping 2013-04-07ui-blob: don't segfault when no path is givenJohn Keeping 2013-03-20Convert pager navigation into a unordered listLukas Fleischer 2013-03-20Makefile: remove CGIT-CFLAGS files in clean stageJason A. Donenfeld 2013-03-20ui-summary.c: Move urls variable into print_urls()Lukas Fleischer 2013-03-20Fix colspan valuesLukas Fleischer 2013-03-20html: check return value of writeJason A. Donenfeld 2013-03-20ui-shared: squelch compiler warning.Jason A. Donenfeld 2013-03-20cgit.mk: Use SHELL_PATH_SQ to run gen-version.shJohn Keeping 2013-03-20cgit.mk: don't rebuild everything if CGIT_VERSION changesJohn Keeping 2013-03-20ui-patch: use cgit_version not CGIT_VERSIONJohn Keeping 2013-03-20Makefile: re-use Git's Makefile where possibleJohn Keeping