diff options
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs index 547bce1f..95989cb0 100644 --- a/src/config.rs +++ b/src/config.rs @@ -771,7 +771,7 @@ impl<'a> de::Deserialize<'a> for ActionWrapper { fn expecting(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.write_str("Paste, Copy, PasteSelection, IncreaseFontSize, DecreaseFontSize, \ ResetFontSize, ScrollPageUp, ScrollPageDown, ScrollToTop, \ - ScrollToBottom, ClearHistory, Hide, ClearLogNotice or Quit") + ScrollToBottom, ClearHistory, Hide, ClearLogNotice, SpawnNewInstance or Quit") } fn visit_str<E>(self, value: &str) -> ::std::result::Result<ActionWrapper, E> @@ -792,6 +792,7 @@ impl<'a> de::Deserialize<'a> for ActionWrapper { "Hide" => Action::Hide, "Quit" => Action::Quit, "ClearLogNotice" => Action::ClearLogNotice, + "SpawnNewInstance" => Action::SpawnNewInstance, _ => return Err(E::invalid_value(Unexpected::Str(value), &self)), })) } |