diff options
author | dundargoc <gocdundar@gmail.com> | 2023-12-16 22:14:28 +0100 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-12-19 11:43:21 +0100 |
commit | 7f6b775b45de5011ff1c44e63e57551566d80704 (patch) | |
tree | 54eab8482051d2d1a958fcf9f6c9bcbb02827717 /src/nvim/ex_session.c | |
parent | 693aea0e9e1032aee85d56c1a3f33e0811dbdc18 (diff) | |
download | rneovim-7f6b775b45de5011ff1c44e63e57551566d80704.tar.gz rneovim-7f6b775b45de5011ff1c44e63e57551566d80704.tar.bz2 rneovim-7f6b775b45de5011ff1c44e63e57551566d80704.zip |
refactor: use `bool` to represent boolean values
Diffstat (limited to 'src/nvim/ex_session.c')
-rw-r--r-- | src/nvim/ex_session.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nvim/ex_session.c b/src/nvim/ex_session.c index 45f05e10f2..6ae401a58c 100644 --- a/src/nvim/ex_session.c +++ b/src/nvim/ex_session.c @@ -59,7 +59,7 @@ static int put_view_curpos(FILE *fd, const win_T *wp, char *spaces) return r >= 0; } -static int ses_winsizes(FILE *fd, int restore_size, win_T *tab_firstwin) +static int ses_winsizes(FILE *fd, bool restore_size, win_T *tab_firstwin) { if (restore_size && (ssop_flags & SSOP_WINSIZE)) { int n = 0; @@ -314,7 +314,7 @@ static int ses_put_fname(FILE *fd, char *name, unsigned *flagp) static int put_view(FILE *fd, win_T *wp, int add_edit, unsigned *flagp, int current_arg_idx) { int f; - int did_next = false; + bool did_next = false; // Always restore cursor position for ":mksession". For ":mkview" only // when 'viewoptions' contains "cursor". @@ -528,8 +528,8 @@ static int put_view(FILE *fd, win_T *wp, int add_edit, unsigned *flagp, int curr /// @return FAIL on error, OK otherwise. static int makeopens(FILE *fd, char *dirnow) { - int only_save_windows = true; - int restore_size = true; + bool only_save_windows = true; + bool restore_size = true; win_T *edited_win = NULL; win_T *tab_firstwin; frame_T *tab_topframe; @@ -627,7 +627,7 @@ static int makeopens(FILE *fd, char *dirnow) } } - int restore_stal = false; + bool restore_stal = false; // When there are two or more tabpages and 'showtabline' is 1 the tabline // will be displayed when creating the next tab. That resizes the windows // in the first tab, which may cause problems. Set 'showtabline' to 2 @@ -886,7 +886,7 @@ void ex_loadview(exarg_T *eap) /// - SSOP_SLASH: filenames are written with "/" slash void ex_mkrc(exarg_T *eap) { - int view_session = false; // :mkview, :mksession + bool view_session = false; // :mkview, :mksession int using_vdir = false; // using 'viewdir'? char *viewFile = NULL; |