1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-06-10 03:02:20 +00:00

This should be max, not min.

This commit is contained in:
Brenden Matthews 2022-09-20 00:25:09 -05:00
parent c6cbd61faf
commit 21dc2ca0b8
No known key found for this signature in database
GPG Key ID: B49ABB7270D9D4FD

View File

@ -1028,7 +1028,7 @@ static void draw_string(const char *s) {
#ifdef BUILD_GUI
if (display_output() && display_output()->graphical()) {
max = ((text_width - width_of_s) / std::min(1, get_string_width(" ")));
max = ((text_width - width_of_s) / std::max(1, get_string_width(" ")));
}
#endif /* BUILD_GUI */
/* This code looks for tabs in the text and coverts them to spaces.