Re: Patch 8.2.2221

2020-12-26 Thread Dominique Pellé
Hi I see a spurious plus sign + introduced by patch 8.2.2221 at the start of line src/testdir/test_cmdline.vim:61. See: https://github.com/vim/vim/blob/master/src/testdir/test_cmdline.vim#L61 It was introduced by the recent patch v8.2.2221. Regards Dominique -- -- You received this message f

Patch 8.2.2224

2020-12-26 Thread Bram Moolenaar
Patch 8.2.2224 Problem:Vim9: crash if script reloaded with different variable type. Solution: Check the type when accessing the variable. Files: src/vim9execute.c, src/vim9compile.c, src/vim9.h, src/vim9type.c, src/proto/vim9type.pro, src/errors.h, src/evalvars.c,

Re: [vim/vim] Force help to open in current window. (#7534)

2020-12-26 Thread tooth pik
why not do something simple like command! -nargs=+ H execute "silent help " | only in your vimrc? On Sat, Dec 26, 2020 at 10:22 AM lacygoill wrote: > For me, it doesn't seem to work; that is, I still get two windows instead > of one, because :h still splits the current window, even when the la

Re: Getting the current character position of the cursor

2020-12-26 Thread Yegappan Lakshmanan
On Sat, Dec 26, 2020 at 8:58 AM Yegappan Lakshmanan wrote: > Hi, > > The getcurpos() and col() functions return the byte position of the cursor. > Is there a function that returns the character position of the cursor in > the current line? > > The byteidx() function returns the byte index given t

Getting the current character position of the cursor

2020-12-26 Thread Yegappan Lakshmanan
Hi, The getcurpos() and col() functions return the byte position of the cursor. Is there a function that returns the character position of the cursor in the current line? The byteidx() function returns the byte index given the character index in a string. I am looking for the opposite. Thanks, Y

Patch 8.2.2223

2020-12-26 Thread Bram Moolenaar
Patch 8.2.2223 Problem:Vim9: Reloading marks a :def function as deleted. Solution: Clear the function contents but keep the index. Files: runtime/doc/vim9.txt, src/vim9compile.c, src/userfunc.c, src/testdir/test_vim9_script.vim *** ../vim-8.2./runtime/doc/vim9.txt

Patch 8.2.2222

2020-12-26 Thread Bram Moolenaar
Patch 8.2. Problem:Vim9: cannot keep script variables when reloading. Solution: Add the "noclear" argument to :vim9script. Files: runtime/doc/vim9.txt, src/structs.h, src/scriptfile.c, src/vim9script.c, src/ex_cmds.h, src/ex_docmd.c, src/testdir/test_vim9_sc

Patch 8.2.2221

2020-12-26 Thread Bram Moolenaar
Patch 8.2.2221 Problem:If is mapped on the command line 'wildchar' is inserted. Solution: Set KeyTyped when using 'wildchar'. (closes #7552) Files: src/cmdexpand.c, src/testdir/test_cmdline.vim *** ../vim-8.2.2220/src/cmdexpand.c 2020-12-21 19:59:04.565197736 +0100 --- src/cmdex