diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-08-25 22:25:02 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-08-25 22:25:02 +0200 |
commit | 12034e22dd80cf533ac1c681be521ab299383f63 (patch) | |
tree | ac564b63f00ae8f37c7fc3f8f5c45e3e6b552213 /src/proto | |
parent | 307c5a5bb77c3728dfab06c30e9f786309c63f74 (diff) |
patch 8.1.1928: popup windows don't move with the text when making changesv8.1.1928
Problem: Popup windows don't move with the text when making changes.
Solution: Add the 'textprop" property to the popup window options, position
the popup relative to a text property. (closes #4560)
No tests yet.
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/move.pro | 1 | ||||
-rw-r--r-- | src/proto/popupwin.pro | 1 | ||||
-rw-r--r-- | src/proto/textprop.pro | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/proto/move.pro b/src/proto/move.pro index c2ec8d5953..d05eb17537 100644 --- a/src/proto/move.pro +++ b/src/proto/move.pro @@ -27,6 +27,7 @@ int curwin_col_off(void); int win_col_off2(win_T *wp); int curwin_col_off2(void); void curs_columns(int may_scroll); +void textpos2screenpos(win_T *wp, pos_T *pos, int *rowp, int *scolp, int *ccolp, int *ecolp); void f_screenpos(typval_T *argvars, typval_T *rettv); void scrolldown(long line_count, int byfold); void scrollup(long line_count, int byfold); diff --git a/src/proto/popupwin.pro b/src/proto/popupwin.pro index dab117e744..d6ba3e7f8b 100644 --- a/src/proto/popupwin.pro +++ b/src/proto/popupwin.pro @@ -55,6 +55,7 @@ void f_popup_findpreview(typval_T *argvars, typval_T *rettv); int popup_create_preview_window(int info); void popup_close_preview(void); void popup_hide_info(void); +int popup_win_closed(win_T *win); void popup_set_title(win_T *wp); void popup_update_preview_title(void); /* vim: set ft=c : */ diff --git a/src/proto/textprop.pro b/src/proto/textprop.pro index f33c7a4bef..028e3d4b4f 100644 --- a/src/proto/textprop.pro +++ b/src/proto/textprop.pro @@ -1,7 +1,9 @@ /* textprop.c */ +int find_prop_type_id(char_u *name, buf_T *buf); void f_prop_add(typval_T *argvars, typval_T *rettv); void prop_add_common(linenr_T start_lnum, colnr_T start_col, dict_T *dict, buf_T *default_buf, typval_T *dict_arg); int get_text_props(buf_T *buf, linenr_T lnum, char_u **props, int will_change); +int find_visible_prop(win_T *wp, int type_id, int id, textprop_T *prop, linenr_T *found_lnum); proptype_T *text_prop_type_by_id(buf_T *buf, int id); void f_prop_clear(typval_T *argvars, typval_T *rettv); void f_prop_list(typval_T *argvars, typval_T *rettv); |