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

Method join_next_line_into

repl/src/editor.rs:135–139  ·  view source on GitHub ↗

Appends the line at `line + 1` to the line at `line`.

(&mut self, line: usize)

Source from the content-addressed store, hash-verified

133impl Editor {
134 /// Appends the line at `line + 1` to the line at `line`.
135 fn join_next_line_into(&mut self, line: usize) {
136 let next = self.content.remove(line + 1);
137 self.content[line].push_str(&next);
138 self.dirty = true;
139 }
140
141 /// Rewrites the status line at the bottom of the `console`, using the previously queried
142 /// `console_size`.

Callers 1

edit_interactivelyMethod · 0.80

Calls 2

removeMethod · 0.80
push_strMethod · 0.80

Tested by

no test coverage detected