Add SyntaxEditor abstraction using optional synect feature
This commit is contained in:
parent
ecf61a93b1
commit
1663bfc96c
7 changed files with 283 additions and 167 deletions
|
|
@ -1,8 +1,7 @@
|
|||
// SPDX-License-Identifier: MIT OR Apache-2.0
|
||||
|
||||
#[cfg(not(feature = "std"))]
|
||||
use alloc::string::ToString;
|
||||
#[cfg(feature = "swash")]
|
||||
use alloc::string::{String, ToString};
|
||||
use core::cmp;
|
||||
use unicode_segmentation::UnicodeSegmentation;
|
||||
|
||||
|
|
@ -226,7 +225,7 @@ impl<'a> Editor<'a> {
|
|||
true
|
||||
}
|
||||
|
||||
/// Perform a [Action] on the editor
|
||||
/// Perform an [Action] on the editor
|
||||
pub fn action(&mut self, action: Action) {
|
||||
let old_cursor = self.cursor;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue