From 1891c775353907ae3ceb4d8e42243b508b450dab Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Tue, 18 Aug 2020 10:09:54 -0400 Subject: Preserve colon from previous tab-complete This fixes the case when pinging multiple nicks and one of them needs to be cycled through. --- edit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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':'; -- cgit 1.4.0 dontfiles
summary refs log tree commit diff
path: root/link.sh (unfollow)
Commit message (Collapse)Author
2022-02-02Publish "Introducing Jorts"June McEnroesetJune McEnroe
2018-02-09Link -lncursesJune McEnroe
2018-02-09Fix X11 KeySym lookup with modifiersJune McEnroe
2018-02-09Clean up bin/gfx/x11.cJune McEnroe
2018-02-09Move gfx interface to header fileJune McEnroe
2018-02-09Silence BSD ctags warningsJune McEnroe
2018-02-09Link LDLIBS regardless of GFXJune McEnroe
2018-02-09Move gfx frontends around to simplify buildJune McEnroe
2018-02-07Add janky X11 graphics frontendJune McEnroe
2018-02-07Include stdio.h in gfb.cJune McEnroe
2018-02-07Exit by returning false from input to gf{b,cocoa}June McEnroe
2018-02-07Rename title to status in gfcocoaJune McEnroe
2018-02-06Require 4 bit counts on gfxx command lineJune McEnroe
2018-02-06Add gfxx controls for custom bitsJune McEnroe
2018-02-06Add gfxx palette loading and dumpingJune McEnroe
2018-02-06Add tags targetJune McEnroe
2018-02-06Replace gfxx SCALE macro with interp functionJune McEnroe
2018-02-05Rename gfxx space indexed and add palette samplingJune McEnroe
2018-02-05Take scale into account for when to stop drawing in gfxxJune McEnroe
2018-02-05Always skip most significant bits in gfxxJune McEnroe
2018-02-05Set title in gfcocoaJune McEnroe
2018-02-05Double-buffer gfb frontendJune McEnroe
2018-02-05Rewrite gfxx bit handlingJune McEnroe
2018-02-05Add flip option to gfxxJune McEnroe
2018-02-05Remove gfxx reverse optionJune McEnroe
2018-02-04Fix gfxx draw stop conditionJune McEnroe
2018-02-04Reuse CGColorSpace and CGDataProvider in gfcocoaJune McEnroe
2018-02-04Mark mac target phonyJune McEnroe
2018-02-04Set up Makefile for gfxx-cocoa or gfxx-fbJune McEnroe
2018-02-04Avoid doing excessive work in gfxxJune McEnroe
2018-02-04Handle window resizing in gfcocoaJune McEnroe
2018-02-04Set cinoptionsJune McEnroe
2018-02-04Tweak colorscheme moreJune McEnroe
2018-02-04Color MatchParen DarkYellowJune McEnroe
2018-02-04Add palette sampling to gfxxJune McEnroe
2018-02-04Add 4-bit RGB to gfxxJune McEnroe
2018-02-04Add Quit menu item to gfcocoaJune McEnroe
2018-02-04Switch back to sane Objective-C styleJune McEnroe
2018-02-04Quit gfcocoa when window closesJune McEnroe
2018-02-03Apparently this is how people write Objective-CJune McEnroe