Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Eeive/Evcode-ide
/ insert_newline
Method
insert_newline
src/editor/buffer.rs:151–153 ·
view source on GitHub ↗
(&mut self)
Source
from the content-addressed store, hash-verified
149
}
150
151
pub fn insert_newline(&mut self) {
152
self.insert_char(
'\n'
);
153
}
154
155
pub fn insert_str(&mut self, text: &str) {
156
if text.is_empty() {
Callers
2
undo_reverts_insert_delete_and_newline
Function · 0.80
handle_editor_key
Method · 0.80
Calls
1
insert_char
Method · 0.45
Tested by
1
undo_reverts_insert_delete_and_newline
Function · 0.64