summaryrefslogtreecommitdiffstats
path: root/src/readline.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-11-17 22:42:51 -0500
committerJesse Luehrs <doy@tozt.net>2021-11-17 22:42:51 -0500
commit7f65b6ae852ea4297fcddcd2e33965c2ddeab063 (patch)
treeca8f55ce390cb03beb0dbd7c107c46542b9da9ac /src/readline.rs
parent4025a5fa46ec24902ee1fb2d6764aed872a3d5b7 (diff)
downloadnbsh-7f65b6ae852ea4297fcddcd2e33965c2ddeab063.tar.gz
nbsh-7f65b6ae852ea4297fcddcd2e33965c2ddeab063.zip
reorder some functions
Diffstat (limited to 'src/readline.rs')
-rw-r--r--src/readline.rs8
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()
}