From 090842bd8e8890c40cf40a4430bae1b073515c40 Mon Sep 17 00:00:00 2001 From: Jerry Yin Date: Mon, 8 Apr 2019 12:50:06 -0700 Subject: Add ScrollLineUp and ScrollLineDown actions for scrolling line by line --- src/config/mod.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/config/mod.rs') diff --git a/src/config/mod.rs b/src/config/mod.rs index 94e74e41..14ebc87d 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -868,8 +868,9 @@ 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, SpawnNewInstance, None or Quit", + ResetFontSize, ScrollPageUp, ScrollPageDown, ScrollLineUp, ScrollLineDown, \ + ScrollToTop, ScrollToBottom, ClearHistory, Hide, ClearLogNotice, \ + SpawnNewInstance, None or Quit", ) } @@ -886,6 +887,8 @@ impl<'a> de::Deserialize<'a> for ActionWrapper { "ResetFontSize" => Action::ResetFontSize, "ScrollPageUp" => Action::ScrollPageUp, "ScrollPageDown" => Action::ScrollPageDown, + "ScrollLineUp" => Action::ScrollLineUp, + "ScrollLineDown" => Action::ScrollLineDown, "ScrollToTop" => Action::ScrollToTop, "ScrollToBottom" => Action::ScrollToBottom, "ClearHistory" => Action::ClearHistory, -- cgit