summaryrefslogtreecommitdiffstats
path: root/src/move.c
diff options
context:
space:
mode:
authorDominique Pelle <dominique.pelle@gmail.com>2023-03-12 21:20:59 +0000
committerBram Moolenaar <Bram@vim.org>2023-03-12 21:20:59 +0000
commite764d1b4219e6615a04df1c3a6a5c0210a0a7dac (patch)
tree547326cc9cf10d5de85ba975470b076aafe02d89 /src/move.c
parentd13dd30240e32071210f55b587182ff48757ea46 (diff)
patch 9.0.1403: unused variables and functionsv9.0.1403
Problem: Unused variables and functions. Solution: Delete items and adjust #ifdefs. (Dominique Pellé, closes #12145)
Diffstat (limited to 'src/move.c')
-rw-r--r--src/move.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/move.c b/src/move.c
index 0550ef5d1e..e8b86caf17 100644
--- a/src/move.c
+++ b/src/move.c
@@ -662,6 +662,7 @@ changed_window_setting_win(win_T *wp)
redraw_win_later(wp, UPD_NOT_VALID);
}
+#if defined(FEAT_PROP_POPUP) || defined(PROTO)
/*
* Call changed_window_setting_win() for every window containing "buf".
*/
@@ -675,6 +676,7 @@ changed_window_setting_buf(buf_T *buf)
if (wp->w_buffer == buf)
changed_window_setting_win(wp);
}
+#endif
/*
* Set wp->w_topline to a certain number.
@@ -744,6 +746,7 @@ changed_line_abv_curs_win(win_T *wp)
|VALID_CHEIGHT|VALID_TOPLINE);
}
+#if defined(FEAT_PROP_POPUP) || defined(PROTO)
/*
* Display of line has changed for "buf", invalidate cursor position and
* w_botline.
@@ -759,6 +762,7 @@ changed_line_display_buf(buf_T *buf)
|VALID_CROW|VALID_CHEIGHT
|VALID_TOPLINE|VALID_BOTLINE|VALID_BOTLINE_AP);
}
+#endif
/*
* Make sure the value of curwin->w_botline is valid.
@@ -3573,7 +3577,6 @@ do_check_cursorbind(void)
int set_curswant = curwin->w_set_curswant;
win_T *old_curwin = curwin;
buf_T *old_curbuf = curbuf;
- int restart_edit_save;
int old_VIsual_select = VIsual_select;
int old_VIsual_active = VIsual_active;
@@ -3601,8 +3604,8 @@ do_check_cursorbind(void)
// Make sure the cursor is in a valid position. Temporarily set
// "restart_edit" to allow the cursor to be beyond the EOL.
- restart_edit_save = restart_edit;
- restart_edit = TRUE;
+ int restart_edit_save = restart_edit;
+ restart_edit = 'a';
check_cursor();
// Avoid a scroll here for the cursor position, 'scrollbind' is