mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 18:56:51 +08:00
Make calc_prompt_layout detect bright escapes
This commit is contained in:
parent
5d4fffcae4
commit
30e56c0237
|
@ -214,7 +214,7 @@ size_t escape_code_length(const wchar_t *code) {
|
|||
for (size_t p = 0; p < sizeof esc / sizeof *esc && !found; p++) {
|
||||
if (!esc[p]) continue;
|
||||
|
||||
for (size_t k = 0; k < 8; k++) {
|
||||
for (size_t k = 0; k < std::min(16, static_cast<int>(max_colors)); k++) {
|
||||
size_t len = try_sequence(tparm(esc[p], k), code);
|
||||
if (len) {
|
||||
resulting_length = len;
|
||||
|
|
Loading…
Reference in New Issue
Block a user