comparison src/structs.h @ 16800:12e3a3afdb6a v8.1.1402

patch 8.1.1402: "timer" option of popup windows not supported commit https://github.com/vim/vim/commit/51fe3b14f63da2b985bcd7b4c50fbe34ae84ea48 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 26 20:10:06 2019 +0200 patch 8.1.1402: "timer" option of popup windows not supported Problem: "timer" option of popup windows not supported. Solution: Implement the "timer" option. (Yasuhiro Matsumoto, closes https://github.com/vim/vim/issues/4439)
author Bram Moolenaar <Bram@vim.org>
date Sun, 26 May 2019 20:15:05 +0200
parents eda4d65f232c
children f5487021fdad
comparison
equal deleted inserted replaced
16799:3c72f9c278b5 16800:12e3a3afdb6a
1938 proftime_T slowest; /* time of slowest call */ 1938 proftime_T slowest; /* time of slowest call */
1939 long count; /* nr of times used */ 1939 long count; /* nr of times used */
1940 long match; /* nr of times matched */ 1940 long match; /* nr of times matched */
1941 } syn_time_T; 1941 } syn_time_T;
1942 #endif 1942 #endif
1943
1944 typedef struct timer_S timer_T;
1945 struct timer_S
1946 {
1947 long tr_id;
1948 #ifdef FEAT_TIMERS
1949 timer_T *tr_next;
1950 timer_T *tr_prev;
1951 proftime_T tr_due; /* when the callback is to be invoked */
1952 char tr_firing; /* when TRUE callback is being called */
1953 char tr_paused; /* when TRUE callback is not invoked */
1954 int tr_repeat; /* number of times to repeat, -1 forever */
1955 long tr_interval; /* msec */
1956 char_u *tr_callback; /* allocated */
1957 partial_T *tr_partial;
1958 int tr_emsg_count;
1959 #endif
1960 };
1943 1961
1944 #ifdef FEAT_CRYPT 1962 #ifdef FEAT_CRYPT
1945 /* 1963 /*
1946 * Structure to hold the type of encryption and the state of encryption or 1964 * Structure to hold the type of encryption and the state of encryption or
1947 * decryption. 1965 * decryption.
2854 pos_save_T w_save_cursor; /* backup of cursor pos and topline */ 2872 pos_save_T w_save_cursor; /* backup of cursor pos and topline */
2855 #ifdef FEAT_TEXT_PROP 2873 #ifdef FEAT_TEXT_PROP
2856 int w_zindex; 2874 int w_zindex;
2857 int w_maxheight; // "maxheight" for popup window 2875 int w_maxheight; // "maxheight" for popup window
2858 int w_maxwidth; // "maxwidth" for popup window 2876 int w_maxwidth; // "maxwidth" for popup window
2877 timer_T *w_popup_timer; // timer for closing popup window
2859 #endif 2878 #endif
2860 2879
2861 2880
2862 /* 2881 /*
2863 * === start of cached values ==== 2882 * === start of cached values ====
3431 * return TRUE when the buffer was filled */ 3450 * return TRUE when the buffer was filled */
3432 void *js_cookie; /* can be used by js_fill */ 3451 void *js_cookie; /* can be used by js_fill */
3433 int js_cookie_arg; /* can be used by js_fill */ 3452 int js_cookie_arg; /* can be used by js_fill */
3434 }; 3453 };
3435 typedef struct js_reader js_read_T; 3454 typedef struct js_reader js_read_T;
3436
3437 typedef struct timer_S timer_T;
3438 struct timer_S
3439 {
3440 long tr_id;
3441 #ifdef FEAT_TIMERS
3442 timer_T *tr_next;
3443 timer_T *tr_prev;
3444 proftime_T tr_due; /* when the callback is to be invoked */
3445 char tr_firing; /* when TRUE callback is being called */
3446 char tr_paused; /* when TRUE callback is not invoked */
3447 int tr_repeat; /* number of times to repeat, -1 forever */
3448 long tr_interval; /* msec */
3449 char_u *tr_callback; /* allocated */
3450 partial_T *tr_partial;
3451 int tr_emsg_count;
3452 #endif
3453 };
3454 3455
3455 /* Maximum number of commands from + or -c arguments. */ 3456 /* Maximum number of commands from + or -c arguments. */
3456 #define MAX_ARG_CMDS 10 3457 #define MAX_ARG_CMDS 10
3457 3458
3458 /* values for "window_layout" */ 3459 /* values for "window_layout" */