mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 10:08:47 +00:00
Do not loop forever if a menu item contains invisible characters,
reported by Thomas Sattler.
This commit is contained in:
parent
d1d3bbb458
commit
c95cd9ed5e
@ -791,7 +791,8 @@ format_width(const char *expanded)
|
|||||||
} else if (*cp > 0x1f && *cp < 0x7f) {
|
} else if (*cp > 0x1f && *cp < 0x7f) {
|
||||||
width++;
|
width++;
|
||||||
cp++;
|
cp++;
|
||||||
}
|
} else
|
||||||
|
cp++;
|
||||||
}
|
}
|
||||||
return (width);
|
return (width);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user