[slim-vim] Vim+ECL patch

Brad Beveridge brad.beveridge at gmail.com
Sun May 21 12:51:02 CDT 2006


Hi all, I wanted to try to create a proper darcs patch of this, but
couldn't remember how I had ./configured my Vim+ECL+Async stuff &
couldn't be bothered figuring it out right now.
vim-buffer-lines will not get the last line in a buffer, the code
should be like the following.

Cheers
Brad

static cl_object cl_vim_buffer_lines_int(cl_object buf_, cl_object
start_, cl_object end_)
{
    buf_T *buf = ((buf_T *)ecl_foreign_data_pointer_safe(buf_));
    int start = fix(start_);
    int end = fix(end_);
    cl_object result = Cnil;

    while (end >= start)
    {
        result = make_cons(make_string_copy(ml_get_buf(buf, end--, FALSE)),
                           result);
    }

    return result;
}


More information about the slim-vim mailing list