support bracketed paste (#8907)

# Description

Relative: #8113, #7630
It works on non-windows system

This pr depends on https://github.com/nushell/reedline/pull/571
This commit is contained in:
WindSoilder
2023-05-04 05:08:47 +08:00
committed by GitHub
parent 7fb48b9a2f
commit e4625acf24
5 changed files with 14 additions and 3 deletions

View File

@ -105,6 +105,12 @@ pub fn evaluate_repl(
);
let config = engine_state.get_config();
if config.bracketed_paste {
// try to enable bracketed paste
// It doesn't work on windows system: https://github.com/crossterm-rs/crossterm/issues/737
#[cfg(not(target_os = "windows"))]
let _ = line_editor.enable_bracketed_paste();
}
// Setup history_isolation aka "history per session"
let history_isolation = config.history_isolation;