fn search_prompt(&mut self) -> (String, usize) {
        if self.is_search() {
            // If we are searching override prompt to search prompt.
            let (hplace, color) = if self.history_subset_index.len() > 0 {
                (self.history_subset_loc.unwrap_or(0) + 1, color::Green.fg_str())
            } else {
                (0, color::Red.fg_str())
            };
            (format!("(search)'{}{}{}` ({}/{}): ",
                     color, self.current_buffer(), color::Reset.fg_str(),
                     hplace,
                     self.history_subset_index.len()),
             9)
        } else {
            (self.prompt.clone(), 0)
        }
    }
/// Override the prompt for incremental search if needed.
Override the prompt for incremental search if needed.
Override the prompt for incremental search if needed .
fn search_prompt(&mut self) -> (String, usize) {
        if self.is_search() {
            // If we are searching override prompt to search prompt.
            let (hplace, color) = if self.history_subset_index.len() > 0 {
                (self.history_subset_loc.unwrap_or(0) + 1, color::Green.fg_str())
            } else {
                (0, color::Red.fg_str())
            };
            (format!("(search)'{}{}{}` ({}/{}): ",
                     color, self.current_buffer(), color::Reset.fg_str(),
                     hplace,
                     self.history_subset_index.len()),
             9)
        } else {
            (self.prompt.clone(), 0)
        }
    }
fn search_prompt ( & mut self ) -> ( String , usize ) { if self . is_search ( ) { // If we are searching override prompt to search prompt. let ( hplace , color ) = if self . history_subset_index . len ( ) > 0 { ( self . history_subset_loc . unwrap_or ( 0 ) + 1 , color :: Green . fg_str ( ) ) } else { ( 0 , color :: Red . fg_str ( ) ) } ; ( format ! ( " " color self current_buffer ( ) color Reset fg_str ( ) hplace self history_subset_index len ( ) ) , 9 ) } else { ( self . prompt . clone ( ) , 0 ) } }
Override the prompt for incremental search if needed.
Override the prompt for incremental search if needed .
&mut self
&mut self