Skip to content

Commit

Permalink
fix: handle messy file names in status
Browse files Browse the repository at this point in the history
  • Loading branch information
altsem committed Feb 9, 2024
1 parent 95838b8 commit 159aa23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/status/status.pest
Original file line number Diff line number Diff line change
Expand Up @@ -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)? }
Expand Down

0 comments on commit 159aa23

Please sign in to comment.