Compare commits

..

4 Commits

Author SHA1 Message Date
33da96a7a7 Updated config 2025-05-05 00:22:20 +01:00
3397e3c4a9 Test 2025-05-05 00:20:20 +01:00
db976e0936 Merge branch 'patch-column' into amused 2025-05-05 00:14:34 +01:00
1e8272016b Added lines below 2025-05-05 00:14:19 +01:00
3 changed files with 27 additions and 2 deletions

View File

@ -17,7 +17,7 @@ static const char *colors[SchemeLast][2] = {
[SchemeOut] = { "#000000", "#00ffff" },
};
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
static unsigned int lines = 0;
static unsigned int lines = 6;
/*
* Characters not considered part of a word while deleting words

View File

@ -179,7 +179,7 @@ drawmenu(void)
if (lines > 0) {
/* draw vertical list */
for (item = curr; item != next; item = item->right)
drawitem(item, x, y += bh, mw - x);
drawitem(item, x - promptw, y += bh, mw - x);
} else if (matches) {
/* draw horizontal list */
x += inputw;

View File

@ -0,0 +1,25 @@
From 98e63311c4816fb3c7f5c5d00232fec3232465f3 Mon Sep 17 00:00:00 2001
From: Sebastian LaVine <mail@smlavine.com>
Date: Sat, 3 Jul 2021 17:35:50 -0400
Subject: [PATCH] Draw lines immediately below prompt
---
dmenu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dmenu.c b/dmenu.c
index 65f25ce..5a041a6 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -154,7 +154,7 @@ drawmenu(void)
if (lines > 0) {
/* draw vertical list */
for (item = curr; item != next; item = item->right)
- drawitem(item, x, y += bh, mw - x);
+ drawitem(item, x - promptw, y += bh, mw);
} else if (matches) {
/* draw horizontal list */
x += inputw;
--
2.32.0