aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/config.def.h b/config.def.h
index bb7d86e..8d61a5a 100644
--- a/config.def.h
+++ b/config.def.h
@@ -460,7 +460,7 @@ static KeyBinding vis_mode_visual_line[] = {
static void vis_mode_visual_line_enter(Mode *old) {
Win *win = vis->win->win;
- window_cursor_to(win, text_line_begin(vis->win->text->data, window_cursor_get(win)));
+ window_cursor_to(win, text_line_begin(vis->win->file->text, window_cursor_get(win)));
if (!old->visual) {
window_selection_start(vis->win->win);
vis_modes[VIS_MODE_OPERATOR].parent = &vis_modes[VIS_MODE_TEXTOBJ];
@@ -564,11 +564,11 @@ static KeyBinding vis_mode_insert[] = {
static void vis_mode_insert_leave(Mode *old) {
/* make sure we can recover the current state after an editing operation */
- text_snapshot(vis->win->text->data);
+ text_snapshot(vis->win->file->text);
}
static void vis_mode_insert_idle(void) {
- text_snapshot(vis->win->text->data);
+ text_snapshot(vis->win->file->text);
}
static void vis_mode_insert_input(const char *str, size_t len) {
@@ -590,7 +590,7 @@ static KeyBinding vis_mode_replace[] = {
static void vis_mode_replace_leave(Mode *old) {
/* make sure we can recover the current state after an editing operation */
- text_snapshot(vis->win->text->data);
+ text_snapshot(vis->win->file->text);
}
static void vis_mode_replace_input(const char *str, size_t len) {