Re: [PATCH] syntax: Improve foldlevel on lines where it changes horizontally

2016-10-14 Fir de Conversatie Bram Moolenaar
Brad King wrote: > I'd like to improve C-syntax folding for a common code format style. > > With `foldmethod=syntax` the code: > > if (...) { > ... > } > else if (...) { > ... > } > else { > ... > } > > folds like this: > > +--- 3 lines: if

Re: [patch] 2 problems about job

2016-10-14 Fir de Conversatie mattn
Sorry, It was wrong. I updated patch https://gist.github.com/mattn/d47e7d3bfe5ade4be86062b565a4bfca On Wednesday, October 12, 2016 at 11:19:06 PM UTC+9, Bram Moolenaar wrote: > +strsave_for_argv(char_u *string) > > I would call the argument "argv" and the escaped result "argv_escaped". renamed

Re: [bug][patch] matchaddpos() may not draw overldapped pos.

2016-10-14 Fir de Conversatie h_east
Hi Bram and Kiichi, 2016-10-15(Sat) 3:41:58 UTC+9 Bram Moolenaar: > Ozaki Kiichi wrote: > > > This is matchaddpos() problem. > > > > [repro steps] > > > > vim -Nu NONE > > > > i1234567890 > > :call matchaddpos('ErrorMsg', [[1, 1, 5], [1, 3, 5]]) > > > > expected: colored 1~7 ("12345" and

[patch] Add completion for :messages

2016-10-14 Fir de Conversatie h_east
Hi Bram and list, Type `:messages ` and push Tab key. None patched behavior: - Output Ctrl-I code :messages ^I Patched behavior: - Complete `clear` :messages clear Attach a patch. (Contains a test) Check it please. -- Best regards, Hirohito Higashi (a.k.a. h_east) -- -- You received

Re: [vim/vim] Fix #1168 completion problem from #875 (#1169)

2016-10-14 Fir de Conversatie h_east
You should add a test. -- Best regards, Hirohito Higashi (a.k.a. h_east) -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message

Re: [vim/vim] Fix #1168 completion problem from #875 (#1169)

2016-10-14 Fir de Conversatie h_east
2016-10-15(Sat) 13:58:03 UTC+9 Shougo: > OK. I have added the test. > > But it is very hard to simulate the completion wait. > > Because the test omnifunc is asynchronous. Issue#1168 repro steps doesn't seem to asynchronous for me. Where is the asynchronous? > > The test fix is wellcome. --

[patch] improve ended-job check

2016-10-14 Fir de Conversatie Ozaki Kiichi
Hi. Currently, vim checks ended-job every 10 second; thus exit_cb is delayed 10 seconds at the maximum. I propose the following: https://gist.github.com/ichizok/fe9743f46822a9015ed2f7d65238c5db os_unix: check by waitpid(-1, _, WNOHANG). os_win32: check by WaitForMultipleObjects(), "the number

Re: [bug][patch] Doing ":redraw" during external command causes strange screen state

2016-10-14 Fir de Conversatie Ozaki Kiichi
> Isn't this a bit too drastic? When termcap_active it should still be > possible to output text (e.g. from another timer command). > > Also check msg_use_printf(). Looks like your change overrules its own > check for termcap_active. Hmm, yes. I think we should suppress updating screen while

Re: [vim/vim] E924 error (#1167)

2016-10-14 Fir de Conversatie Christ van Willegen
Op 14 okt. 2016 17:21 schreef "Martin Vuille" : > > But I am unsure how to incorporate the files "foo" and "bar" into the test. You can write them from the test. Christ van Willegen -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type

[PATCH] syntax: Improve foldlevel on lines where it changes horizontally

2016-10-14 Fir de Conversatie Brad King
Hi Folks, I'd like to improve C-syntax folding for a common code format style. With `foldmethod=syntax` the code: if (...) { ... } else if (...) { ... } else { ... } folds like this: +--- 3 lines: if (...) {--- +--- 3

Re: [patch] improve ended-job check

2016-10-14 Fir de Conversatie Christian Brabandt
Hi Ozaki! On Fr, 14 Okt 2016, Ozaki Kiichi wrote: > Hi. > > Currently, vim checks ended-job every 10 second; thus exit_cb is delayed > 10 seconds at the maximum. > > I propose the following: > > https://gist.github.com/ichizok/fe9743f46822a9015ed2f7d65238c5db > > os_unix: check by

Re: [bug][patch] Doing ":redraw" during external command causes strange screen state

2016-10-14 Fir de Conversatie Bram Moolenaar
Ozaki Kiichi wrote: > > Isn't this a bit too drastic? When termcap_active it should still be > > possible to output text (e.g. from another timer command). > > > > Also check msg_use_printf(). Looks like your change overrules its own > > check for termcap_active. > > Hmm, yes. I think we

Re: [bug][patch] matchaddpos() may not draw overldapped pos.

2016-10-14 Fir de Conversatie Bram Moolenaar
Ozaki Kiichi wrote: > This is matchaddpos() problem. > > [repro steps] > > vim -Nu NONE > > i1234567890 > :call matchaddpos('ErrorMsg', [[1, 1, 5], [1, 3, 5]]) > > expected: colored 1~7 ("12345" and "34567"; pos [1, 1, 5] and [1, 3, 5], > overlapped "345") > > actual: colored 1~5 ("12345";

Re: [patch] 2 problems about job

2016-10-14 Fir de Conversatie Bram Moolenaar
Yasuhiro Matsumoto wrote: > Sorry, It was wrong. I updated patch > > https://gist.github.com/mattn/d47e7d3bfe5ade4be86062b565a4bfca > > On Wednesday, October 12, 2016 at 11:19:06 PM UTC+9, Bram Moolenaar wrote: > > +strsave_for_argv(char_u *string) > > > > I would call the argument "argv" and

Re: [patch] improve ended-job check

2016-10-14 Fir de Conversatie Bram Moolenaar
Ozaki Kiichi wrote: > Currently, vim checks ended-job every 10 second; thus exit_cb is delayed > 10 seconds at the maximum. > > I propose the following: > > https://gist.github.com/ichizok/fe9743f46822a9015ed2f7d65238c5db > > os_unix: check by waitpid(-1, _, WNOHANG). > os_win32: check by

Re: [patch] improve ended-job check

2016-10-14 Fir de Conversatie LCD 47
On 14 October 2016, Bram Moolenaar wrote: > > Ozaki Kiichi wrote: > > > Currently, vim checks ended-job every 10 second; thus exit_cb is delayed > > 10 seconds at the maximum. > > > > I propose the following: > > > >