comparison src/structs.h @ 16636:0daf9eca3541 v8.1.1320

patch 8.1.1320: it is not possible to track changes to a buffer commit https://github.com/vim/vim/commit/6d2399bd1053b367e13cc2b8991d3ff0bf724c7c Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 11 19:14:16 2019 +0200 patch 8.1.1320: it is not possible to track changes to a buffer Problem: It is not possible to track changes to a buffer. Solution: Add listener_add() and listener_remove(). No docs or tests yet.
author Bram Moolenaar <Bram@vim.org>
date Sat, 11 May 2019 19:15:05 +0200
parents 1a911bd57f11
children 978bcd70883d
comparison
equal deleted inserted replaced
16635:3f496519cc23 16636:0daf9eca3541
1871 # endif 1871 # endif
1872 int jo_tty_type; // first character of "tty_type" 1872 int jo_tty_type; // first character of "tty_type"
1873 #endif 1873 #endif
1874 } jobopt_T; 1874 } jobopt_T;
1875 1875
1876 #ifdef FEAT_EVAL
1877 /*
1878 * Structure used for listeners added with listener_add().
1879 */
1880 typedef struct listener_S listener_T;
1881 struct listener_S
1882 {
1883 listener_T *lr_next;
1884 int lr_id;
1885 char_u *lr_callback;
1886 partial_T *lr_partial;
1887 };
1888 #endif
1876 1889
1877 /* structure used for explicit stack while garbage collecting hash tables */ 1890 /* structure used for explicit stack while garbage collecting hash tables */
1878 typedef struct ht_stack_S 1891 typedef struct ht_stack_S
1879 { 1892 {
1880 hashtab_T *ht; 1893 hashtab_T *ht;
2422 int b_start_bomb; /* 'bomb' when it was read */ 2435 int b_start_bomb; /* 'bomb' when it was read */
2423 2436
2424 #ifdef FEAT_EVAL 2437 #ifdef FEAT_EVAL
2425 dictitem_T b_bufvar; /* variable for "b:" Dictionary */ 2438 dictitem_T b_bufvar; /* variable for "b:" Dictionary */
2426 dict_T *b_vars; /* internal variables, local to buffer */ 2439 dict_T *b_vars; /* internal variables, local to buffer */
2440
2441 listener_T *b_listener;
2427 #endif 2442 #endif
2428 #ifdef FEAT_TEXT_PROP 2443 #ifdef FEAT_TEXT_PROP
2429 int b_has_textprop; // TRUE when text props were added 2444 int b_has_textprop; // TRUE when text props were added
2430 hashtab_T *b_proptypes; // text property types local to buffer 2445 hashtab_T *b_proptypes; // text property types local to buffer
2431 #endif 2446 #endif