Lines Matching defs:cutbuf

397   char *cutbuf;              /* A cut-buffer of the same size as line[] */
1776 gl->cutbuf = NULL;
1933 gl->cutbuf = (char *) malloc(linelen + 2);
1934 if(!gl->cutbuf) {
1938 gl->cutbuf[0] = '\0';
2068 if(gl->cutbuf)
2069 free(gl->cutbuf);
4246 strlcpy(gl->cutbuf, gl->line, gl->linelen);
4278 strlcpy(gl->cutbuf, gl->line + gl->buff_curpos, gl->linelen);
4370 memcpy(gl->cutbuf, gl->line + gl->buff_curpos, nc);
4371 gl->cutbuf[nc] = '\0';
4969 * mark and the cursor, recording them in gl->cutbuf for later pasting.
4988 gl->cutbuf[0] = '\0';
5010 * mark and the cursor, in gl->cutbuf for later pasting.
5025 gl->cutbuf[0] = '\0';
5041 memcpy(gl->cutbuf, gl->line + ca, cb + 1 - ca);
5042 gl->cutbuf[cb + 1 - ca] = '\0';
5060 if(gl->cutbuf[0] == '\0')
5071 if(gl_add_string_to_line(gl, gl->cutbuf))
5094 if(gl->cutbuf[0] == '\0')
5114 if(gl_add_string_to_line(gl, gl->cutbuf))
7209 memcpy(gl->cutbuf, gl->line + gl->buff_curpos, count);
7210 gl->cutbuf[count] = '\0';
7232 memcpy(gl->cutbuf, gl->line + gl->buff_curpos, count);
7233 gl->cutbuf[count] = '\0';
7275 memcpy(gl->cutbuf, gl->line + gl->buff_curpos, gl->ntotal - gl->buff_curpos);
7276 gl->cutbuf[gl->ntotal - gl->buff_curpos] = '\0';
7289 memcpy(gl->cutbuf, gl->line, gl->buff_curpos);
7290 gl->cutbuf[gl->buff_curpos] = '\0';
7303 memcpy(gl->cutbuf, gl->line, gl->ntotal);
7304 gl->cutbuf[gl->ntotal] = '\0';
7634 memcpy(gl->cutbuf, gl->line + gl->buff_curpos, n);
7635 gl->cutbuf[n] = '\0';
7657 memcpy(gl->cutbuf, gl->line + next, n);
7658 gl->cutbuf[n] = '\0';
7695 memcpy(gl->cutbuf, gl->line + gl->buff_curpos, n);
7698 memcpy(gl->cutbuf, gl->line + pos, n);
7705 gl->cutbuf[n] = '\0';
8680 gl->cutbuf, gl->linelen+1)) {
8682 gl->cutbuf[0] = '\0';
8685 gl->cutbuf[0] = '\0';