aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-04-22 10:25:19 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-04-22 10:25:19 +0200
commit5fd810ecfe499e10841b1d428241eb4040f83759 (patch)
tree75e96b44334fdeb6d62b881cb94ada1af7a6b01f /config.def.h
parent0f75e5fbc07047d8758ec8966f64745fe271edee (diff)
downloadvis-5fd810ecfe499e10841b1d428241eb4040f83759.tar.gz
vis-5fd810ecfe499e10841b1d428241eb4040f83759.tar.xz
Better variable naming (VisText -> File)
Therefore vis->win->text->data becomes vis->win->file->text.
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) {