|
|
@ -37,7 +37,7 @@ use helix_view::{
|
|
|
|
info::Info,
|
|
|
|
info::Info,
|
|
|
|
input::KeyEvent,
|
|
|
|
input::KeyEvent,
|
|
|
|
keyboard::KeyCode,
|
|
|
|
keyboard::KeyCode,
|
|
|
|
tree,
|
|
|
|
tree::{Dimension, Resize},
|
|
|
|
view::View,
|
|
|
|
view::View,
|
|
|
|
Document, DocumentId, Editor, ViewId,
|
|
|
|
Document, DocumentId, Editor, ViewId,
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -773,18 +773,18 @@ fn goto_line_start(cx: &mut Context) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fn grow_buffer_width(cx: &mut Context) {
|
|
|
|
fn grow_buffer_width(cx: &mut Context) {
|
|
|
|
cx.editor.grow_buffer_width();
|
|
|
|
cx.editor.resize_buffer(Resize::Grow, Dimension::Width);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fn shrink_buffer_width(cx: &mut Context) {
|
|
|
|
fn shrink_buffer_width(cx: &mut Context) {
|
|
|
|
cx.editor.shrink_buffer_width();
|
|
|
|
cx.editor.resize_buffer(Resize::Shrink, Dimension::Width);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fn grow_buffer_height(cx: &mut Context) {
|
|
|
|
fn grow_buffer_height(cx: &mut Context) {
|
|
|
|
cx.editor.grow_buffer_height();
|
|
|
|
cx.editor.resize_buffer(Resize::Grow, Dimension::Height);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fn shrink_buffer_height(cx: &mut Context) {
|
|
|
|
fn shrink_buffer_height(cx: &mut Context) {
|
|
|
|
cx.editor.shrink_buffer_height();
|
|
|
|
cx.editor.resize_buffer(Resize::Shrink, Dimension::Height);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
fn buffer_expand_mode(cx: &mut Context) {
|
|
|
|
fn buffer_expand_mode(cx: &mut Context) {
|
|
|
|