Fix comment

This commit is contained in:
Bastien Dejean 2020-11-02 10:23:50 +01:00
parent 01107f974b
commit 51983994fa

View file

@ -542,7 +542,7 @@ int node_from_desc(char *desc, coordinates_t *ref, coordinates_t *dst)
char *path = strrchr(desc, '@');
char *colon = strrchr(desc, ':');
/* Discard hashes inside a DESKTOP_SEL, e.g. `newest#@prev#older:/1/2` */
/* Adjust or discard hashes inside a DESKTOP_SEL, e.g. `newest#@prev#older:/1/2` */
if (hash != NULL && colon != NULL && path != NULL &&
path < hash && hash < colon) {
if (path > desc && *(path - 1) == '#') {