From 159aa23505918e41836b7e7fbd5454d4d88a958e Mon Sep 17 00:00:00 2001 From: altsem Date: Fri, 9 Feb 2024 22:44:48 +0100 Subject: [PATCH] fix: handle messy file names in status --- src/status/status.pest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/status/status.pest b/src/status/status.pest index 3abd03a086..ac94abc8eb 100644 --- a/src/status/status.pest +++ b/src/status/status.pest @@ -7,7 +7,7 @@ ahead_behind = _{ "[" ~ (("ahead " ~ ahead | "behind " ~ behind) ~ ", "?)+ ~ "] no_commits = { "No commits yet on " ~ local } no_branch = { "HEAD (no branch)" } branch_status = { "## " ~ (no_commits | no_branch | local ~ ("..." ~ remote)? ~ (" " ~ ahead_behind)?) } -file = { (!(NEWLINE | " ") ~ ANY)+ } +file = { (!(NEWLINE | " -> ") ~ ANY)+ } new_file = @{ file } code = { (ASCII_ALPHA | "?" | " "){2} } file_status = { code ~ " " ~ file ~ (" -> " ~ new_file)? }