mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-24 05:41:14 -03:00
screen: remove obsolete type
This commit is contained in:
@@ -2036,9 +2036,6 @@ fn compute_layout(
|
||||
.filter(|&c| c == '\n')
|
||||
.count();
|
||||
|
||||
struct SuggestionLine<'a> {
|
||||
autosuggestion_line: &'a wstr,
|
||||
}
|
||||
let mut suggestion_lines = vec![];
|
||||
|
||||
let mut available_vertical_space = screen_viewport_y.map_or(
|
||||
@@ -2095,22 +2092,14 @@ struct SuggestionLine<'a> {
|
||||
}
|
||||
};
|
||||
|
||||
suggestion_lines.push(SuggestionLine {
|
||||
autosuggestion_line,
|
||||
});
|
||||
suggestion_lines.push(autosuggestion_line);
|
||||
|
||||
suggestion_start += autosuggestion_line.len() + "\n".len();
|
||||
}
|
||||
|
||||
let mut autosuggestion = WString::new();
|
||||
let mut displayed_len = 0;
|
||||
for (
|
||||
line_idx,
|
||||
&SuggestionLine {
|
||||
autosuggestion_line,
|
||||
},
|
||||
) in suggestion_lines.iter().enumerate()
|
||||
{
|
||||
for (line_idx, autosuggestion_line) in suggestion_lines.iter().enumerate() {
|
||||
if line_idx != 0 {
|
||||
autosuggestion.push('\n');
|
||||
displayed_len += "\n".len();
|
||||
|
||||
Reference in New Issue
Block a user