Mercurial > vim
annotate src/proto/usercmd.pro @ 33077:d03841a271aa v9.0.1825
patch 9.0.1825: wrong cursor position with virt text and 'linebreak'
Commit: https://github.com/vim/vim/commit/6e55e85f92aff43c1b3cb564201440f3552d63f0
Author: zeertzjq <zeertzjq@outlook.com>
Date: Wed Aug 30 16:55:09 2023 +0200
patch 9.0.1825: wrong cursor position with virt text and 'linebreak'
Problem: Wrong cursor position with virtual text before a whitespace
character and 'linebreak'.
Solution: Always set "col_adj" to "size - 1" and apply 'linebreak' after
adding the size of 'breakindent' and 'showbreak'.
closes: #12956
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 30 Aug 2023 17:00:03 +0200 |
parents | 360f286b5869 |
children |
rev | line source |
---|---|
16411
5b5c5daf57de
patch 8.1.1210: support for user commands is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
1 /* usercmd.c */ |
16466
a2befc9b3729
patch 8.1.1237: error for using "compl", reserved word in C++
Bram Moolenaar <Bram@vim.org>
parents:
16411
diff
changeset
|
2 char_u *find_ucmd(exarg_T *eap, char_u *p, int *full, expand_T *xp, int *complp); |
28757
add09d468c0d
patch 8.2.4903: cannot get the current cmdline completion type and position
Bram Moolenaar <Bram@vim.org>
parents:
27778
diff
changeset
|
3 char_u *set_context_in_user_cmd(expand_T *xp, char_u *arg_in); |
27778
858002fef4b7
patch 8.2.4415: function argument name conflicts with C++ keyword
Bram Moolenaar <Bram@vim.org>
parents:
27744
diff
changeset
|
4 char_u *set_context_in_user_cmdarg(char_u *cmd, char_u *arg, long argt, int context, expand_T *xp, int forceit); |
25757
589226a5f317
patch 8.2.3414: fullcommand() gives wrong name with buffer-local user command
Bram Moolenaar <Bram@vim.org>
parents:
25463
diff
changeset
|
5 char_u *expand_user_command_name(int idx); |
16411
5b5c5daf57de
patch 8.1.1210: support for user commands is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
6 char_u *get_user_commands(expand_T *xp, int idx); |
25757
589226a5f317
patch 8.2.3414: fullcommand() gives wrong name with buffer-local user command
Bram Moolenaar <Bram@vim.org>
parents:
25463
diff
changeset
|
7 char_u *get_user_command_name(int idx, int cmdidx); |
16411
5b5c5daf57de
patch 8.1.1210: support for user commands is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
8 char_u *get_user_cmd_addr_type(expand_T *xp, int idx); |
5b5c5daf57de
patch 8.1.1210: support for user commands is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
9 char_u *get_user_cmd_flags(expand_T *xp, int idx); |
5b5c5daf57de
patch 8.1.1210: support for user commands is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
10 char_u *get_user_cmd_nargs(expand_T *xp, int idx); |
5b5c5daf57de
patch 8.1.1210: support for user commands is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
11 char_u *get_user_cmd_complete(expand_T *xp, int idx); |
28757
add09d468c0d
patch 8.2.4903: cannot get the current cmdline completion type and position
Bram Moolenaar <Bram@vim.org>
parents:
27778
diff
changeset
|
12 char_u *cmdcomplete_type_to_str(int expand); |
16466
a2befc9b3729
patch 8.1.1237: error for using "compl", reserved word in C++
Bram Moolenaar <Bram@vim.org>
parents:
16411
diff
changeset
|
13 int cmdcomplete_str_to_type(char_u *complete_str); |
16411
5b5c5daf57de
patch 8.1.1210: support for user commands is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
14 char *uc_fun_cmd(void); |
16466
a2befc9b3729
patch 8.1.1237: error for using "compl", reserved word in C++
Bram Moolenaar <Bram@vim.org>
parents:
16411
diff
changeset
|
15 int parse_compl_arg(char_u *value, int vallen, int *complp, long *argt, char_u **compl_arg); |
25463
05f9e8f2016c
patch 8.2.3268: cannot use a block with :autocmd like with :command
Bram Moolenaar <Bram@vim.org>
parents:
22715
diff
changeset
|
16 char_u *may_get_cmd_block(exarg_T *eap, char_u *p, char_u **tofree, int *flags); |
16411
5b5c5daf57de
patch 8.1.1210: support for user commands is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
17 void ex_command(exarg_T *eap); |
5b5c5daf57de
patch 8.1.1210: support for user commands is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
18 void ex_comclear(exarg_T *eap); |
5b5c5daf57de
patch 8.1.1210: support for user commands is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
19 void uc_clear(garray_T *gap); |
5b5c5daf57de
patch 8.1.1210: support for user commands is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
20 void ex_delcommand(exarg_T *eap); |
30986
360f286b5869
patch 9.0.0828: various typos
Bram Moolenaar <Bram@vim.org>
parents:
28757
diff
changeset
|
21 size_t add_win_cmd_modifiers(char_u *buf, cmdmod_T *cmod, int *multi_mods); |
22715
8968ed4ba4ba
patch 8.2.1906: warning for signed/unsigned
Bram Moolenaar <Bram@vim.org>
parents:
22703
diff
changeset
|
22 size_t produce_cmdmods(char_u *buf, cmdmod_T *cmod, int quote); |
16411
5b5c5daf57de
patch 8.1.1210: support for user commands is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
23 void do_ucmd(exarg_T *eap); |
5b5c5daf57de
patch 8.1.1210: support for user commands is spread out
Bram Moolenaar <Bram@vim.org>
parents:
diff
changeset
|
24 /* vim: set ft=c : */ |