MCPcopy Index your code
hub / github.com/endbasic/endbasic / edit

Method edit

repl/src/editor.rs:520–527  ·  view source on GitHub ↗
(&mut self, console: &mut dyn Console)

Source from the content-addressed store, hash-verified

518 }
519
520 async fn edit(&mut self, console: &mut dyn Console) -> io::Result<()> {
521 console.enter_alt()?;
522 let previous = console.set_sync(false)?;
523 let result = self.edit_interactively(console).await;
524 console.set_sync(previous)?;
525 console.leave_alt()?;
526 result
527 }
528
529 fn load(&mut self, name: Option<&str>, text: &str) {
530 self.name = name.map(str::to_owned);

Callers 2

run_editorFunction · 0.45
test_program_behaviorFunction · 0.45

Calls 4

edit_interactivelyMethod · 0.80
enter_altMethod · 0.45
set_syncMethod · 0.45
leave_altMethod · 0.45

Tested by 1

test_program_behaviorFunction · 0.36