diff --git a/neofetch b/neofetch index 4bc46fd8..abd4b7b5 100755 --- a/neofetch +++ b/neofetch @@ -1266,7 +1266,7 @@ get_resolution() { height="$(wmic path Win32_VideoController get CurrentVerticalResolution /value)" height="${height//CurrentVerticalResolution'='/}" - [[ "$width" ]] && resolution="${width}x${height}" + [[ "$(trim "$width")" ]] && resolution="${width}x${height}" ;; "Haiku")