blob: 1d065f71663f8e918d2cbb414172bd17f3d08642 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
diff --git a/source/modes/dmenu.c b/source/modes/dmenu.c
index 27b6097d..85dda8e5 100644
--- a/source/modes/dmenu.c
+++ b/source/modes/dmenu.c
@@ -391,7 +391,7 @@ static gchar *dmenu_format_output_string(const DmenuModePrivateData *pd,
unsigned int index =
(unsigned int)g_ascii_strtoull(pd->columns[i], NULL, 10);
if (index <= ns && index > 0) {
- if (i == 0) {
+ if (index == 1) {
g_string_append(str_retv, splitted[index - 1]);
} else {
g_string_append_c(str_retv, '\t');
|