From 9e88c9c12fd5f1bea4169e438d46529a530142b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Linse?= Date: Fri, 5 Nov 2021 10:42:22 +0100 Subject: [PATCH] fix(screen): make display_tick monotonic up to 2^64. fixes #16152 18446744073709551616 screen redraws should be enough for everyone. --- src/nvim/buffer_defs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h index f77f0aadb0..074dde86f1 100644 --- a/src/nvim/buffer_defs.h +++ b/src/nvim/buffer_defs.h @@ -99,7 +99,7 @@ typedef struct { typedef struct window_S win_T; typedef struct wininfo_S wininfo_T; typedef struct frame_S frame_T; -typedef uint16_t disptick_T; // display tick type +typedef uint64_t disptick_T; // display tick type // for struct memline (it needs memfile_T) #include "nvim/memline_defs.h" @@ -576,8 +576,8 @@ struct file_buffer { long b_mod_xlines; // number of extra buffer lines inserted; // negative when lines were deleted wininfo_T *b_wininfo; // list of last used info for each window - int b_mod_tick_syn; // last display tick syntax was updated - int b_mod_tick_decor; // last display tick decoration providers + disptick_T b_mod_tick_syn; // last display tick syntax was updated + disptick_T b_mod_tick_decor; // last display tick decoration providers // where invoked long b_mtime; // last change time of original file