[dev] [sbase][PATCH] diff: 1 minor bug fix + code improvements

2016-01-31 Thread Mattias Andrée
The fix bug was in main() in the code block for `else if (old && !new)`. Signed-off-by: Mattias Andrée --- diff.c | 172 +++-- 1 file changed, 92 insertions(+), 80 deletions(-) diff --git a/diff.c b/diff.c index

Re: [dev] [vis] text_line_end() in insert mode

2016-01-31 Thread Markus Teich
Marc André Tanner wrote: > The END-mapping was actually using text_line_lastchar not text_line_end. I > now added a new key action for text_line_end. The behaviour might still be > inconsistent (for example in vim's visual modes `$` seems to behave like > ) but at least it can now be configured

Re: [dev] [sbase][PATCH v2] diff

2016-01-31 Thread Mattias Andrée
On Sun, 31 Jan 2016 12:39:34 +0100 Hiltjo Posthuma wrote: > Some notes from me: > > - I would avoid using variadic arrays, use a sane subset > of C99. Are you refering to this code? #define matrix (*matrix) #define map (*map) char map[an + 1][bn + 1] =

[dev] [ANNOUNCE] recall-0.1

2016-01-31 Thread Dave Kennedy
Hello, This is my first C program, which hopefully someone else will find useful: https://github.com/dave-kennedy/recall Here's a brief snippet from the readme: The purpose of this program is to help me remember bash commands. recall is invoked with a list of arguments

Re: [dev] [ANNOUNCE] spt-0.1

2016-01-31 Thread Dave Kennedy
Pickfire wrote: > On Sun, Jan 31, 2016 at 02:44:21PM -0700, Dave Kennedy wrote: > >This is my first C program, which hopefully someone else will find useful: > > > > https://github.com/dave-kennedy/recall > > Nice, I didn't know you can ANNOUNCE your own project here, I

[dev] [PATCH] diff: late changes are preferred over early changes

2016-01-31 Thread Mattias Andrée
Rather than producing +/**/ void a() { /* a */ +} + +void b() { +/* b */ } void c() { /* c */ } +/**/ produce +/**/ void a() { /* a */ } +void b() { +/* b */ +} + void c() { /* c */ } +/**/ This is more likely to be preferred. Signed-off-by: Mattias

Re: [dev] [ANNOUNCE] spt-0.1

2016-01-31 Thread Pickfire
On Sun, Jan 31, 2016 at 02:44:21PM -0700, Dave Kennedy wrote: This is my first C program, which hopefully someone else will find useful: https://github.com/dave-kennedy/recall Nice, I didn't know you can ANNOUNCE your own project here, I would like to do it too, nice idea. Here is my

Re: Re: [dev] [ANNOUNCE] spt-0.1

2016-01-31 Thread Norman Köhring
Pickfire wrote: > On Sun, Jan 31, 2016 at 02:44:21PM -0700, Dave Kennedy wrote: > >This is my first C program, which hopefully someone else will > find useful: > > > > https://github.com/dave-kennedy/recall > > Nice, I didn't know you can ANNOUNCE your own project here,

Re: [dev] [ANNOUNCE] vis-0.1: first release of a vim-like editor

2016-01-31 Thread Marc André Tanner
On Tue, Jan 19, 2016 at 11:54:38PM +, Joshua Haase wrote: > Filter has stopped working when selection is active since at least > commit 304b645c974118b7 (haven't done a proper bisect to > identify the issue). > > Will send a patch if I get this before someone else. Is this still an issue? If

Re: [dev] [vis] vis lua integration not working when using lua 5.3

2016-01-31 Thread Marc André Tanner
On Thu, Jan 21, 2016 at 09:29:01AM +0100, Silvan Jegen wrote: > On Thu, Jan 21, 2016 at 9:11 AM, Silvan Jegen wrote: > > I came up with only two general approaches. Either send error messages > > to the UI (including a sleep() so that errors further down in the call > > chain

Re: [dev] [sbase] diff

2016-01-31 Thread Marc André Tanner
On Thu, Jan 28, 2016 at 04:48:22PM +0100, Markus Wichmann wrote: > Comments? I'm not really up to date with all the different algorithms and haven't looked at the code, but for source code i.e. patches the Patience diff "pre-processing" seems to have some desirable properties: