Mercurial > vim
diff src/proto/term.pro @ 18150:0ec6521e9d80 v8.1.2070
patch 8.1.2070: mouse code is spread out
Commit: https://github.com/vim/vim/commit/b8ff5c271ee5dcef6f63436b77e228e062ff9a0e
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Sep 23 21:16:54 2019 +0200
patch 8.1.2070: mouse code is spread out
Problem: Mouse code is spread out.
Solution: Move mouse terminal code parsing to mouse.c. (Yegappan Lakshmanan,
closes #4966)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 23 Sep 2019 21:30:04 +0200 |
parents | 1868ec23360e |
children | 506bf60a30a0 |
line wrap: on
line diff
--- a/src/proto/term.pro +++ b/src/proto/term.pro @@ -32,6 +32,7 @@ void term_push_title(int which); void term_pop_title(int which); void ttest(int pairs); void add_long_to_buf(long_u val, char_u *dst); +int get_bytes_from_buf(char_u *buf, char_u *bytes, int num_bytes); void check_shellsize(void); void limit_screen_size(void); void win_new_shellsize(void); @@ -59,8 +60,10 @@ void clear_termcodes(void); void add_termcode(char_u *name, char_u *string, int flags); char_u *find_termcode(char_u *name); char_u *get_termcode(int i); +int get_termcode_len(int idx); void del_termcode(char_u *name); void set_mouse_topline(win_T *wp); +int is_mouse_topline(win_T *wp); int check_termcode(int max_offset, char_u *buf, int bufsize, int *buflen); void term_get_fg_color(char_u *r, char_u *g, char_u *b); void term_get_bg_color(char_u *r, char_u *g, char_u *b);