Skip to content

Commit

Permalink
Cursor: Don't print 0px
Browse files Browse the repository at this point in the history
  • Loading branch information
CarterLi committed Aug 26, 2023
1 parent ce2f2f4 commit 0534882
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# dev
# 2.0.5

Bugfixes:
* Fix segfault when using libxrandr (#544, Display, Linux)
* Don't print 0px (#544, Cursor)

Features:
* Add option `--disk-use-available` (#543)
Expand Down
2 changes: 1 addition & 1 deletion src/modules/cursor/cursor.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void ffPrintCursor(FFCursorOptions* options)
ffPrintLogoAndKey(FF_CURSOR_MODULE_NAME, 0, &options->moduleArgs, FF_PRINT_TYPE_DEFAULT);
ffStrbufWriteTo(&result.theme, stdout);

if(result.size.length > 0)
if(result.size.length > 0 && !ffStrbufEqualS(&result.size, "0"))
printf(" (%spx)", result.size.chars);

putchar('\n');
Expand Down

0 comments on commit 0534882

Please sign in to comment.