[ create a new paste ] login | about

Link: http://codepad.org/1q7qNXFA    [ raw code | fork ]

apotheon - C, pasted on Mar 18:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Who writes code like this?
 *
 * Hint: this snippet was harvested from Vim sources.
 */

            if (*p == ')')
            {
            curwin->w_cursor.col = (colnr_T)(p - ptr);
            if ((pos = findmatch(NULL, '(')) != NULL)
            {
                curwin->w_cursor.lnum = pos->lnum;
                newindent = get_indent();
                ptr = ml_get_curline();
            }
            }


Create a new paste based on this one


Comments: