diff --git a/neofetch b/neofetch index fccdef9b..b2938644 100755 --- a/neofetch +++ b/neofetch @@ -3047,7 +3047,8 @@ get_resolution() { ;; esac - resolution="${resolution%,*}" + resolution="${resolution%%,}" + resolution="${resolution%%, }" [[ -z "${resolution/x}" ]] && resolution= }