tangled
alpha
login
or
join now
fuwn.net
/
sydney
0
fork
atom
🦘 Vim-like, Command-line Gemini Client
gemini
gemini-protocol
tui
smolweb
vim
0
fork
atom
overview
issues
pulls
pipelines
feat(input.rs): refresh and validate wrap width
fuwn.net
3 years ago
e20cedb1
3287ca84
verified
This commit was signed with the committer's
known signature
.
fuwn.net
SSH Key Fingerprint:
SHA256:VPdFPyPbd6JkoMyWUdZ/kkTcIAt3sxjXD2XSAZ7FYC4=
+12
-2
3 changed files
expand all
collapse all
unified
split
src
app.rs
command.rs
input.rs
+1
-1
src/app.rs
···
111
111
items = self.items.items.clone();
112
112
}
113
113
114
114
-
items.push((vec![format!("{}", response.meta().to_string())], None));
114
114
+
items.push((vec![response.meta().to_string()], None));
115
115
items.push((vec!["".to_string()], None));
116
116
117
117
if let Some(content) = response.content().clone() {
+9
-1
src/command.rs
···
38
38
},
39
39
|at| {
40
40
match at.parse() {
41
41
-
Ok(at_parsed) => Self::Wrap(at_parsed, None),
41
41
+
Ok(at_parsed) =>
42
42
+
Self::Wrap(
43
43
+
if at_parsed == 0 {
44
44
+
crossterm::terminal::size().unwrap_or((80, 24)).0
45
45
+
} else {
46
46
+
at_parsed
47
47
+
},
48
48
+
None,
49
49
+
),
42
50
Err(error) => Self::Wrap(80, Some(error.to_string())),
43
51
}
44
52
},
+2
src/input.rs
···
184
184
} else {
185
185
app.error = None;
186
186
app.wrap_at = at;
187
187
+
188
188
+
app.make_request();
187
189
},
188
190
}
189
191