mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 17:08:21 +00:00
inline
This commit is contained in:
parent
cb3b968e3a
commit
0f13ecc54e
1 changed files with 1 additions and 0 deletions
|
|
@ -101,6 +101,7 @@ pub fn get_message(
|
|||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn limit_str(s: &str, limit: usize) -> &str {
|
||||
if let Some(first) = s.lines().next() {
|
||||
let mut limit = limit.min(first.len());
|
||||
|
|
|
|||
Loading…
Reference in a new issue