@@ -101,13 +101,13 @@ pub trait Theme {
101
101
self . format_input_prompt_selection ( f, prompt, "[hidden]" )
102
102
}
103
103
104
- /// Format a select prompt.
104
+ /// Format a selection prompt.
105
105
#[ inline]
106
106
fn format_select_prompt ( & self , f : & mut dyn fmt:: Write , prompt : & str ) -> fmt:: Result {
107
107
self . format_prompt ( f, prompt)
108
108
}
109
109
110
- /// Format a select prompt after selection .
110
+ /// Format a selection prompt after an item was selected .
111
111
#[ inline]
112
112
fn format_select_prompt_selection (
113
113
& self ,
@@ -118,7 +118,7 @@ pub trait Theme {
118
118
self . format_input_prompt_selection ( f, prompt, sel)
119
119
}
120
120
121
- /// Format a multi select prompt.
121
+ /// Format a multi-selection prompt.
122
122
#[ inline]
123
123
fn format_multi_select_prompt ( & self , f : & mut dyn fmt:: Write , prompt : & str ) -> fmt:: Result {
124
124
self . format_prompt ( f, prompt)
@@ -130,7 +130,7 @@ pub trait Theme {
130
130
self . format_prompt ( f, prompt)
131
131
}
132
132
133
- /// Format a multi_select prompt after selection .
133
+ /// Format a multi-selection prompt after an item was selected .
134
134
fn format_multi_select_prompt_selection (
135
135
& self ,
136
136
f : & mut dyn fmt:: Write ,
@@ -144,7 +144,7 @@ pub trait Theme {
144
144
Ok ( ( ) )
145
145
}
146
146
147
- /// Format a sort prompt after selection .
147
+ /// Format a sort prompt after an item was selected .
148
148
#[ inline]
149
149
fn format_sort_prompt_selection (
150
150
& self ,
@@ -155,7 +155,7 @@ pub trait Theme {
155
155
self . format_multi_select_prompt_selection ( f, prompt, selections)
156
156
}
157
157
158
- /// Format a select prompt item.
158
+ /// Format a single selection prompt item.
159
159
fn format_select_prompt_item (
160
160
& self ,
161
161
f : & mut dyn fmt:: Write ,
@@ -165,7 +165,7 @@ pub trait Theme {
165
165
write ! ( f, "{} {}" , if active { ">" } else { " " } , text)
166
166
}
167
167
168
- /// Formats a multi select prompt item.
168
+ /// Format a single multi-selection prompt item.
169
169
fn format_multi_select_prompt_item (
170
170
& self ,
171
171
f : & mut dyn fmt:: Write ,
@@ -206,7 +206,7 @@ pub trait Theme {
206
206
)
207
207
}
208
208
209
- /// Format a fuzzy select prompt.
209
+ /// Format a fuzzy selection prompt.
210
210
#[ cfg( feature = "fuzzy-select" ) ]
211
211
fn format_fuzzy_select_prompt (
212
212
& self ,
@@ -848,7 +848,7 @@ impl<'a> TermThemeRenderer<'a> {
848
848
849
849
pub fn clear_preserve_prompt ( & mut self , size_vec : & [ usize ] ) -> io:: Result < ( ) > {
850
850
let mut new_height = self . height ;
851
- //Check each item size, increment on finding an overflow
851
+ // Check each item size, increment on finding an overflow
852
852
for size in size_vec {
853
853
if * size > self . term . size ( ) . 1 as usize {
854
854
new_height += 1 ;
0 commit comments