resolution: Fix truncation of drm modes. Closes #1639
This commit is contained in:
parent
64dd7b68ef
commit
7de6bb8d2c
1 changed files with 2 additions and 1 deletions
3
neofetch
3
neofetch
|
@ -3047,7 +3047,8 @@ get_resolution() {
|
|||
;;
|
||||
esac
|
||||
|
||||
resolution="${resolution%,*}"
|
||||
resolution="${resolution%%,}"
|
||||
resolution="${resolution%%, }"
|
||||
[[ -z "${resolution/x}" ]] && resolution=
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue