diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-11-17 22:42:51 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-11-17 22:42:51 -0500 |
commit | 7f65b6ae852ea4297fcddcd2e33965c2ddeab063 (patch) | |
tree | ca8f55ce390cb03beb0dbd7c107c46542b9da9ac /src/readline.rs | |
parent | 4025a5fa46ec24902ee1fb2d6764aed872a3d5b7 (diff) | |
download | nbsh-7f65b6ae852ea4297fcddcd2e33965c2ddeab063.tar.gz nbsh-7f65b6ae852ea4297fcddcd2e33965c2ddeab063.zip |
reorder some functions
Diffstat (limited to 'src/readline.rs')
-rw-r--r-- | src/readline.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/readline.rs b/src/readline.rs index 529c102..365f5ec 100644 --- a/src/readline.rs +++ b/src/readline.rs @@ -48,10 +48,6 @@ impl Readline { Some(crate::action::Action::Render) } - pub fn lines(&self) -> usize { - 2 // XXX handle wrapping - } - pub async fn render( &self, out: &mut textmode::Output, @@ -112,6 +108,10 @@ impl Readline { self.size = size; } + pub fn lines(&self) -> usize { + 2 // XXX handle wrapping + } + fn input(&self) -> String { self.input_line.clone() } |