robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

robinmerge: 1dc9728daa1d8a2702

master
543 B18 linesraw
1#pragma once
2
3#include <stdbool.h>
4
5#include "nvim/pos_defs.h"
6
7/// A window's viewport (scroll position and curswant, not the cursor). Reported by winsaveview().
8/// Used for save/restore before temporary work ('incsearch', 'inccommand', multicursor replay).
9typedef struct {
10  colnr_T vs_curswant;
11  bool vs_set_curswant;  ///< `w_set_curswant`: `vs_curswant` is stale, derive it from the cursor.
12  colnr_T vs_leftcol;
13  colnr_T vs_skipcol;
14  linenr_T vs_topline;
15  int vs_topfill;
16  linenr_T vs_botline;
17  int vs_empty_rows;
18} viewstate_T;