зеркало из
https://github.com/glebtv/tui-textarea.git
synced 2026-09-04 14:55:51 +03:00
implement select (#45)
* select, second go using new multiline code * implemented internal delete_str, added tests * delete_str_internal must not put non deleted strings into history. Ie ctrlc should not change history * delete_str was taking lines out in the non delete case * corrected comment * fixes after feedback. Plus multichar bugs. change modal sample
Этот коммит содержится в:
@@ -262,6 +262,7 @@ impl<'a> Editor<'a> {
|
||||
key: Key::Char('g' | 'n'),
|
||||
ctrl: true,
|
||||
alt: false,
|
||||
..
|
||||
}
|
||||
| Input { key: Key::Down, .. } => {
|
||||
if !textarea.search_forward(false) {
|
||||
@@ -272,11 +273,13 @@ impl<'a> Editor<'a> {
|
||||
key: Key::Char('g'),
|
||||
ctrl: false,
|
||||
alt: true,
|
||||
..
|
||||
}
|
||||
| Input {
|
||||
key: Key::Char('p'),
|
||||
ctrl: true,
|
||||
alt: false,
|
||||
..
|
||||
}
|
||||
| Input { key: Key::Up, .. } => {
|
||||
if !textarea.search_back(false) {
|
||||
|
||||
Ссылка в новой задаче
Block a user