MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / histupdate

Method histupdate

src/sys/prompt.rs:451–458  ·  view source on GitHub ↗

Update history

(&mut self)

Source from the content-addressed store, hash-verified

449
450 // Update history
451 fn histupdate(&mut self)
452 {
453 if let Some(i) = self.hist.pos
454 {
455 self.ln = self.hist.items[i].chars().collect();
456 self.hist.pos = None;
457 }
458 }
459
460
461 // Input

Callers 7

handle_backspaceMethod · 0.80
handle_backwardMethod · 0.80
handle_delMethod · 0.80
handle_forwardMethod · 0.80
handle_printableMethod · 0.80
handle_tabMethod · 0.80
inputMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected