Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-core/src/command_line.rs')
| -rw-r--r-- | helix-core/src/command_line.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/helix-core/src/command_line.rs b/helix-core/src/command_line.rs index 4c762a71..960b247d 100644 --- a/helix-core/src/command_line.rs +++ b/helix-core/src/command_line.rs @@ -223,7 +223,11 @@ impl fmt::Display for ParseArgsError<'_> { write!(f, "flag '--{flag}' missing an argument") } Self::MissingExpansionDelimiter { expansion } => { - write!(f, "missing a string delimiter after '%{expansion}'") + if expansion.is_empty() { + write!(f, "'%' was not properly escaped. Please use '%%'") + } else { + write!(f, "missing a string delimiter after '%{expansion}'") + } } Self::UnknownExpansion { kind } => { write!(f, "unknown expansion '{kind}'") |