-
Notifications
You must be signed in to change notification settings - Fork 626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] the -display-columns
option of -dmenu
seems to resulting in extraneous leading whitespace
#1834
Comments
yeah, silly issue. very very quick look at it. This might fix it: diff --git a/source/modes/dmenu.c b/source/modes/dmenu.c
index 85dda8e5..27b6097d 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 (index == 1) {
+ if (i == 0) {
g_string_append(str_retv, splitted[index - 1]);
} else {
g_string_append_c(str_retv, '\t'); |
I have no idea what 'default X from arch repo is'.. please don't just assume things instead of following the very simple questions asked. From start of issue: So be consistent, I should lock it.. |
sure, added the configs |
thanks. |
can confirm it seems to be fixed with 71570a9 thanks 👍 |
thx for testing. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Rofi version (rofi -v)
1.7.5
Configuration
configuration
Theme
theme
Timing report
No response
Launch command
rofi -dmenu -display-columns 2
Step to reproduce
printf "first col\t%s\n" "second col a" "second col b" "second col c" | rofi -dmenu -display-columns 2
this is basically just a simple table that has two columns separated by a single tab char
Expected behavior
only first column printed with no leading whitespace
Actual behavior
only first column printed with leading whitespace with
-display-columns 2
Additional information
No response
Using wayland display server protocol
I've checked if the issue exists in the latest stable release
The text was updated successfully, but these errors were encountered: