summary refs log tree commit diff
path: root/tab.c
diff options
context:
space:
mode:
Diffstat (limited to 'tab.c')
-rw-r--r--tab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tab.c b/tab.c
index a6bb795..c0a96a4 100644
--- a/tab.c
+++ b/tab.c
@@ -81,7 +81,7 @@ void tabRemove(struct Tag tag, const char *word) {
 		if (tag.id != TAG_ALL.id && entry->tag != tag.id) continue;
 		if (strcmp(entry->word, word)) continue;
 		unlink(entry);
-		if (match == entry) match = entry->next;
+		if (match == entry) match = entry->prev;
 		free(entry->word);
 		free(entry);
 		return;
@@ -92,7 +92,7 @@ void tabClear(struct Tag tag) {
 	for (struct Entry *entry = head; entry; entry = entry->next) {
 		if (entry->tag != tag.id) continue;
 		unlink(entry);
-		if (match == entry) match = entry->next;
+		if (match == entry) match = entry->prev;
 		free(entry->word);
 		free(entry);
 	}
d=a68441bca195e3ece2ea6d248c1755c82ec44b2b&follow=1'>malloc IDAT chunks in pngo and glitchJune McEnroe 2018-09-02Use PascalCase for constants in gfxJune McEnroe 2018-09-02Use PascalCase for constantsJune McEnroe Get outta here, underscores. 2018-09-02Remove colorcolumn at 100June McEnroe 2018-09-02Install bc(1) on ArchJune McEnroe 2018-09-02SendEnv LANGJune McEnroe 2018-08-27Add New Order — TemptationJune McEnroe 2018-08-26Add NetBSD to install.shJune McEnroe 2018-08-24Show hostname in title over SSHJune McEnroe 2018-08-23Alias bc='bc -l'June McEnroe 2018-08-20Update usage of scheme in READMEJune McEnroe 2018-08-20Use scheme.h in fbatt and fbclockJune McEnroe 2018-08-20Generate scheme.hJune McEnroe 2018-08-20Add dependencies on gfx.hJune McEnroe 2018-08-18Add Blondie — Heart of GlassJune McEnroe Why didn't I know about this song? I love it. 2018-08-18Set FCEDIT=$EDITORJune McEnroe 2018-08-18Only post commits with bodies to MastodonJune McEnroe 2018-08-18Run tf/cfg link script with /bin/shJune McEnroe 2018-08-18Run {,s,t}up with /bin/shJune McEnroe 2018-08-18Use whence instead of typeJune McEnroe type is an alias for whence -v and is more for human consumption. 2018-08-18Cut off path components until right prompt fitsJune McEnroe Keeps paths valid (from somehwere) rather than abrupt truncation. 2018-08-17Add "private" alias to source encrypted fileJune McEnroe Why is there no easy way to *edit* an encrypted file? 2018-08-17Add vim mapping to add a #includeJune McEnroe