Re: [vim/vim] Duplicate locations in the output of `getjumplist()` (#2631)

2018-02-10 Fir de Conversatie Yegappan Lakshmanan
Hi, On Sat, Feb 10, 2018 at 6:51 PM, vim-dev ML wrote: > Hi, > > On Sat, Feb 10, 2018 at 3:38 PM, lacygoill > wrote: >> >> Consider this snippet whose purpose is to populate the location list of >> the >> current window with the locations in the jumplist: >> >> nno g:j :call qf_jumplist() >> fu

Re: [vim/vim] Duplicate locations in the output of `getjumplist()` (#2631)

2018-02-10 Fir de Conversatie Yegappan Lakshmanan
Hi, On Sat, Feb 10, 2018 at 3:38 PM, lacygoill wrote: > > Consider this snippet whose purpose is to populate the location list of the > current window with the locations in the jumplist: > > nnog:j :call qf_jumplist() > fu! s:qf_jumplist() abort > let jumplist = get(getjumplist(), 0, [])

Re: syntax for EOF ruby/python/other lang in vimscript

2018-02-10 Fir de Conversatie Ni Va
Le dimanche 11 février 2018 00:49:31 UTC+1, Ni Va a écrit : > Le dimanche 11 février 2018 00:40:23 UTC+1, ZyX a écrit : > > 2018-02-11 1:58 GMT+03:00 Ni Va : > > > Le samedi 10 février 2018 21:17:16 UTC+1, Tony Mechelynck a écrit : > > >> On Sat, Feb 10, 2018 at 7:29 PM, 'Andy Wokula' via vim_use >

Re: syntax for EOF ruby/python/other lang in vimscript

2018-02-10 Fir de Conversatie Ni Va
Le dimanche 11 février 2018 00:40:23 UTC+1, ZyX a écrit : > 2018-02-11 1:58 GMT+03:00 Ni Va : > > Le samedi 10 février 2018 21:17:16 UTC+1, Tony Mechelynck a écrit : > >> On Sat, Feb 10, 2018 at 7:29 PM, 'Andy Wokula' via vim_use > >> wrote: > >> > Am 10.02.2018 um 17:40 schrieb Ni Va: > >> >> > >

Re: syntax for EOF ruby/python/other lang in vimscript

2018-02-10 Fir de Conversatie Nikolay Aleksandrovich Pavlov
2018-02-11 2:24 GMT+03:00 Ni Va : > Le dimanche 11 février 2018 00:01:30 UTC+1, ZyX a écrit : >> 2018-02-11 1:58 GMT+03:00 Ni Va : >> > Le samedi 10 février 2018 21:17:16 UTC+1, Tony Mechelynck a écrit : >> >> On Sat, Feb 10, 2018 at 7:29 PM, 'Andy Wokula' via vim_use >> >> wrote: >> >> > Am 10.02

Re: syntax for EOF ruby/python/other lang in vimscript

2018-02-10 Fir de Conversatie Nikolay Aleksandrovich Pavlov
2018-02-11 1:58 GMT+03:00 Ni Va : > Le samedi 10 février 2018 21:17:16 UTC+1, Tony Mechelynck a écrit : >> On Sat, Feb 10, 2018 at 7:29 PM, 'Andy Wokula' via vim_use >> wrote: >> > Am 10.02.2018 um 17:40 schrieb Ni Va: >> >> >> >> Hi, >> >> >> >> Like :h ruby says, I use this kind of script ruby i

Re: syntax for EOF ruby/python/other lang in vimscript

2018-02-10 Fir de Conversatie Ni Va
Le dimanche 11 février 2018 00:01:30 UTC+1, ZyX a écrit : > 2018-02-11 1:58 GMT+03:00 Ni Va : > > Le samedi 10 février 2018 21:17:16 UTC+1, Tony Mechelynck a écrit : > >> On Sat, Feb 10, 2018 at 7:29 PM, 'Andy Wokula' via vim_use > >> wrote: > >> > Am 10.02.2018 um 17:40 schrieb Ni Va: > >> >> > >

Re: syntax for EOF ruby/python/other lang in vimscript

2018-02-10 Fir de Conversatie Nikolay Aleksandrovich Pavlov
2018-02-11 1:58 GMT+03:00 Ni Va : > Le samedi 10 février 2018 21:17:16 UTC+1, Tony Mechelynck a écrit : >> On Sat, Feb 10, 2018 at 7:29 PM, 'Andy Wokula' via vim_use >> wrote: >> > Am 10.02.2018 um 17:40 schrieb Ni Va: >> >> >> >> Hi, >> >> >> >> Like :h ruby says, I use this kind of script ruby i

Re: syntax for EOF ruby/python/other lang in vimscript

2018-02-10 Fir de Conversatie Ni Va
Le samedi 10 février 2018 21:17:16 UTC+1, Tony Mechelynck a écrit : > On Sat, Feb 10, 2018 at 7:29 PM, 'Andy Wokula' via vim_use > wrote: > > Am 10.02.2018 um 17:40 schrieb Ni Va: > >> > >> Hi, > >> > >> Like :h ruby says, I use this kind of script ruby interface below. > >> > >> How can i make vi

Re: syntax for EOF ruby/python/other lang in vimscript

2018-02-10 Fir de Conversatie Tony Mechelynck
On Sat, Feb 10, 2018 at 7:29 PM, 'Andy Wokula' via vim_use wrote: > Am 10.02.2018 um 17:40 schrieb Ni Va: >> >> Hi, >> >> Like :h ruby says, I use this kind of script ruby interface below. >> >> How can i make vim switch automatically to ruby syntax in EOF section and >> rest of time stay in vim s

Patch 8.0.1497

2018-02-10 Fir de Conversatie Bram Moolenaar
Patch 8.0.1497 Problem:Getting the jump list requires parsing the output of :jumps. Solution: Add getjumplist(). (Yegappan Lakshmanan, closes #2609) Files: runtime/doc/eval.txt, runtime/doc/usr_41.txt, src/Makefile, src/evalfunc.c, src/list.c, src/proto/list.pro,

Patch 8.0.1496

2018-02-10 Fir de Conversatie Bram Moolenaar
Patch 8.0.1496 Problem:Clearing a pointer takes two lines. Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi, closes #2629) Files: src/buffer.c, src/channel.c, src/crypt.c, src/edit.c, src/eval.c, src/evalfunc.c, src/ex_cmds.c, src/ex_cmds2.c,

Re: Patch 8.0.1491

2018-02-10 Fir de Conversatie Nikolay Aleksandrovich Pavlov
2018-02-10 20:28 GMT+03:00 Bram Moolenaar : > > Nikolay Pavlov wrote: > >> > + *'pumwidth'* *'pw'* >> > + 'pumwidth' 'pw' number (default 0) >> > + global >> > + {not available when compiled wit

Patch 8.0.1495

2018-02-10 Fir de Conversatie Bram Moolenaar
Patch 8.0.1495 Problem:Having 'pumwidth' default to zero has no merit. Solution: Make the default 15, as the actual default value. Files: src/popupmnu.c, src/option.c *** ../vim-8.0.1494/src/popupmnu.c 2018-02-10 15:36:51.138901636 +0100 --- src/popupmnu.c 2018-02-10 18:26:4

Re: Patch 8.0.1481

2018-02-10 Fir de Conversatie Bram Moolenaar
Hirohito Higashi wrote: > > > 2018-2-9(Fri) 20:30:22 UTC+9 Bram Moolenaar: > > > > Patch 8.0.1481 > > > > Problem:Clearing a pointer takes two lines. > > > > Solution: Add vim_clear() to free and clear the pointer. > > > > Files: src/misc2.c, src/proto/misc2.pro, src/edit.c > > > [...]

Re: Patch 8.0.1481

2018-02-10 Fir de Conversatie Bram Moolenaar
Hirohito Higashi wrote: > > > > > Patch 8.0.1481 > > > > > Problem:Clearing a pointer takes two lines. > > > > > Solution: Add vim_clear() to free and clear the pointer. > > > > > Files: src/misc2.c, src/proto/misc2.pro, src/edit.c > > > > [...] > > > > > > > > > > > > In todo.txt >

Re: Patch 8.0.1491

2018-02-10 Fir de Conversatie Bram Moolenaar
Nikolay Pavlov wrote: > > + *'pumwidth'* *'pw'* > > + 'pumwidth' 'pw' number (default 0) > > + global > > + {not available when compiled without the > > + |+insert_expand

Patch 8.0.1494

2018-02-10 Fir de Conversatie Bram Moolenaar
Patch 8.0.1494 Problem:No autocmd triggered in Insert mode with visible popup menu. Solution: Add TextChangedP. (Prabir Shrestha, Christian Brabandt, closes #2372, closes #1691) Fix that the TextChanged autocommands are not always triggered when sourcing a

Re: [vim/vim] gvim exits with "BadWindow (invalid window parameter)" when highlighting large regions (#1023)

2018-02-10 Fir de Conversatie Kazunobu Kuriyama
2018-02-10 17:48 GMT+09:00 John Little : > A few findings: > > 1. > Turning on "Ignore selection" in the clipboard settings has stopped > it. > That's because the clipboard manager stops interfering with Vim's attempt to obtain and hold the ownership of the CLIPBOARD selection. In order for Vim

Re: Patch 8.0.1481

2018-02-10 Fir de Conversatie h_east
Hi Bram, 2018-2-11(Sun) 1:15:49 UTC+9 h_east: > Hi Bram, > > 2018-2-10(Sat) 21:10:17 UTC+9 Bram Moolenaar: > > Hirohito Higashi wrote: > > > > > 2018-2-9(Fri) 20:30:22 UTC+9 Bram Moolenaar: > > > > Patch 8.0.1481 > > > > Problem:Clearing a pointer takes two lines. > > > > Solution: Add vim

Re: Patch 8.0.1481

2018-02-10 Fir de Conversatie h_east
Hi Bram, 2018-2-10(Sat) 21:10:17 UTC+9 Bram Moolenaar: > Hirohito Higashi wrote: > > > 2018-2-9(Fri) 20:30:22 UTC+9 Bram Moolenaar: > > > Patch 8.0.1481 > > > Problem:Clearing a pointer takes two lines. > > > Solution: Add vim_clear() to free and clear the pointer. > > > Files: src/mis

Patch 8.0.1493

2018-02-10 Fir de Conversatie Bram Moolenaar
Patch 8.0.1493 Problem:Completion items cannot be annotated. Solution: Add a "user_data" entry to the completion item. (Ben Jackson, coses #2608, closes #2508) Files: runtime/doc/insert.txt, src/edit.c, src/structs.h, src/testdir/test_ins_complete.vim *** ../vi

Re: Patch 8.0.1491

2018-02-10 Fir de Conversatie Nikolay Aleksandrovich Pavlov
2018-02-10 17:37 GMT+03:00 Bram Moolenaar : > > Patch 8.0.1491 > Problem:The minimum width of the popup menu is hard coded. > Solution: Add the 'pumwidth' option. (Christian Brabandt, James McCoy, > closes #2314) > Files: runtime/doc/options.txt, src/option.c, src/option.h, >

Patch 8.0.1492

2018-02-10 Fir de Conversatie Bram Moolenaar
Patch 8.0.1492 Problem:Memory leak in balloon_split(). Solution: Free the balloon lines. Free the balloon when exiting. Files: src/misc2.c, src/evalfunc.c *** ../vim-8.0.1491/src/misc2.c 2018-02-09 12:29:52.335647866 +0100 --- src/misc2.c 2018-02-10 15:25:43.743470651 +0100 **

Patch 8.0.1491

2018-02-10 Fir de Conversatie Bram Moolenaar
Patch 8.0.1491 Problem:The minimum width of the popup menu is hard coded. Solution: Add the 'pumwidth' option. (Christian Brabandt, James McCoy, closes #2314) Files: runtime/doc/options.txt, src/option.c, src/option.h, src/popupmnu.c *** ../vim-8.0.1490/runtime

Patch 8.0.1490

2018-02-10 Fir de Conversatie Bram Moolenaar
Patch 8.0.1490 Problem:Number of spell regions is spread out through the code. Solution: Define MAXREGIONS. Files: src/spell.h, src/spellfile.c *** ../vim-8.0.1489/src/spell.h 2016-08-29 22:42:20.0 +0200 --- src/spell.h 2018-02-10 13:55:21.912773084 +0100 *** *** 3

Re: Inaccuracy in the Vim syntax file for Lisp

2018-02-10 Fir de Conversatie Bram Moolenaar
Ivan Podmazov wrote: > Hello! > I wish to report a syntax file bug. File maintainer's specified e-mail is > invalid, cannot contact him directly. > I have noticed that one of the 978 Common Lisp symbols is missing from > 'syntax/lisp.vim' (only 977 symbols are present). > After 'values-list' in

Re: Patch 8.0.1481

2018-02-10 Fir de Conversatie Bram Moolenaar
Hirohito Higashi wrote: > 2018-2-9(Fri) 20:30:22 UTC+9 Bram Moolenaar: > > Patch 8.0.1481 > > Problem:Clearing a pointer takes two lines. > > Solution: Add vim_clear() to free and clear the pointer. > > Files: src/misc2.c, src/proto/misc2.pro, src/edit.c > [...] > > > In todo.txt > >

Re: [vim/vim] gvim exits with "BadWindow (invalid window parameter)" when highlighting large regions (#1023)

2018-02-10 Fir de Conversatie John Little
A few findings: 1. > Turning on "Ignore selection" in the clipboard settings has stopped it. Not good, I use it all the time, in vim or out. 2. The failure occurs if the selection is more than 262144 bytes, 2**18. 3. A workaround for me is to take the suggestion in the comment in x_error_handl