1
0
зеркало из https://github.com/glebtv/tui-textarea.git synced 2026-09-06 07:35:51 +03:00
Этот коммит содержится в:
fritzrehde
2023-10-30 11:47:56 +01:00
родитель 60a57b3899
Коммит addf3e9656
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@@ -300,7 +300,7 @@ let mut textarea = TextArea::from([
// Create `TextArea` from `String` // Create `TextArea` from `String`
let mut text: String = ...; let mut text: String = ...;
let mut textarea = TextARea::from(text.lines()); let mut textarea = TextArea::from(text.lines());
``` ```
`TextArea` also implements `FromIterator<impl Into<String>>`. `Iterator::collect()` can collect strings as an editor `TextArea` also implements `FromIterator<impl Into<String>>`. `Iterator::collect()` can collect strings as an editor

Просмотреть файл

@@ -5,7 +5,7 @@
#![doc = include_str!("../README.md")] #![doc = include_str!("../README.md")]
#[cfg(all(feature = "ratatui", feature = "tuirs"))] #[cfg(all(feature = "ratatui", feature = "tuirs"))]
compile_error!("ratatui support and tui-rs support are exclussive. only one of them can be enabled at the same time. see https://github.com/rhysd/tui-textarea#installation"); compile_error!("ratatui support and tui-rs support are exclusive. only one of them can be enabled at the same time. see https://github.com/rhysd/tui-textarea#installation");
mod cursor; mod cursor;
mod highlight; mod highlight;

Просмотреть файл

@@ -1345,7 +1345,7 @@ impl<'a> TextArea<'a> {
self.mask = None; self.mask = None;
} }
/// Get the charater to mask text. When no character is set, `None` is returned. /// Get the character to mask text. When no character is set, `None` is returned.
/// ``` /// ```
/// use tui_textarea::TextArea; /// use tui_textarea::TextArea;
/// ///