reader autosuggestion: doc comments

This commit is contained in:
Johannes Altmanninger
2026-01-22 15:08:13 +01:00
parent 01d91dd65c
commit 9d260cac0b

View File

@@ -5119,16 +5119,17 @@ fn exec_prompt(&mut self, full_prompt: bool, final_prompt: bool) {
#[derive(Default)]
pub(super) struct Autosuggestion {
// The text to use, as an extension/replacement of the current line.
/// The text to use, as an extension/replacement of the current line.
text: WString,
// The range within the commandline that was searched. Always a whole line.
/// The range within the commandline that was searched.
/// Always at least whole line.
search_string_range: Range<usize>,
// Whether the autosuggestion should be case insensitive.
/// Whether the autosuggestion should be case insensitive.
icase: bool,
// Whether the autosuggestion is a whole match from history.
/// Whether the autosuggestion is a whole match from history.
is_whole_item_from_history: bool,
}