aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorRom Grk <romgrk.cc@gmail.com>2020-10-24 04:56:43 -0400
committerRom Grk <romgrk.cc@gmail.com>2020-10-24 04:56:43 -0400
commitd4033db6a0a3b9e1f33ca3760377c8a637e80c85 (patch)
tree573426ec6baaa183d7036024ec1c68ccbb067ecc /src/nvim/edit.c
parentb83d8223ffee099634a4352443cb56a94ebfcc22 (diff)
downloadrneovim-d4033db6a0a3b9e1f33ca3760377c8a637e80c85.tar.gz
rneovim-d4033db6a0a3b9e1f33ca3760377c8a637e80c85.tar.bz2
rneovim-d4033db6a0a3b9e1f33ca3760377c8a637e80c85.zip
scroll: cleanup unnecessary code & comments
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index 447f922767..949f5d5a62 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -1486,22 +1486,7 @@ static void ins_redraw(
&& (curwin->w_last_topline != curwin->w_topline ||
curwin->w_last_leftcol != curwin->w_leftcol)) {
- // XXX is the buf changedtick thing necessary?
- // XXX apply_autocmds vs ins_apply_autocmds?
- // XXX why can't we re-use normal_check_window_scrolled()?
-
- aco_save_T aco;
- varnumber_T tick = buf_get_changedtick(curbuf);
-
- // save and restore curwin and curbuf, in case the autocmd changes them
- aucmd_prepbuf(&aco, curbuf);
apply_autocmds(EVENT_SCROLL, NULL, NULL, false, curbuf);
- aucmd_restbuf(&aco);
- curbuf->b_last_changedtick_pum = buf_get_changedtick(curbuf);
- if (tick != buf_get_changedtick(curbuf)) { // see ins_apply_autocmds()
- u_save(curwin->w_cursor.lnum,
- (linenr_T)(curwin->w_cursor.lnum + 1));
- }
curwin->w_last_topline = curwin->w_topline;
curwin->w_last_leftcol = curwin->w_leftcol;