Home
last modified time | relevance | path

Searched refs:newbuf (Results 1 – 10 of 10) sorted by relevance

/vim-8.2.3635/src/
H A Dfilepath.c33 WCHAR *newbuf; in get_short_pathname() local
37 newbuf = malloc(len * sizeof(*newbuf)); in get_short_pathname()
38 if (newbuf == NULL) in get_short_pathname()
44 vim_free(newbuf); in get_short_pathname()
53 WCHAR *newbuf_t = newbuf; in get_short_pathname()
54 newbuf = vim_realloc(newbuf, (l + 1) * sizeof(*newbuf)); in get_short_pathname()
55 if (newbuf == NULL) in get_short_pathname()
62 l = GetShortPathNameW(wfname, newbuf, l+1); in get_short_pathname()
66 char_u *p = utf16_to_enc(newbuf, NULL); in get_short_pathname()
76 vim_free(newbuf); in get_short_pathname()
[all …]
H A Dquickfix.c6464 buf_T *newbuf; in load_dummy_buffer() local
6473 if (newbuf == NULL) in load_dummy_buffer()
6475 set_bufref(&newbufref, newbuf); in load_dummy_buffer()
6481 if (ml_open(newbuf) == OK) in load_dummy_buffer()
6484 ++newbuf->b_locked; in load_dummy_buffer()
6487 aucmd_prepbuf(&aco, newbuf); in load_dummy_buffer()
6503 --newbuf->b_locked; in load_dummy_buffer()
6509 if (curbuf != newbuf) in load_dummy_buffer()
6516 newbuf = curbuf; in load_dummy_buffer()
6527 newbuf->b_flags |= BF_DUMMY; in load_dummy_buffer()
[all …]
H A Dbuffer.c5776 buf_T *newbuf; in buf_contents_changed() local
5783 newbuf = buflist_new(NULL, NULL, (linenr_T)1, BLN_DUMMY); in buf_contents_changed()
5784 if (newbuf == NULL) in buf_contents_changed()
5790 wipe_buffer(newbuf, FALSE); in buf_contents_changed()
5795 aucmd_prepbuf(&aco, newbuf); in buf_contents_changed()
5819 if (curbuf != newbuf) // safety check in buf_contents_changed()
5820 wipe_buffer(newbuf, FALSE); in buf_contents_changed()
H A Dchannel.c1951 char_u *newbuf; in channel_collapse() local
1968 p = newbuf = alloc(len + 1); in channel_collapse()
1969 if (newbuf == NULL) in channel_collapse()
1974 node->rq_buffer = newbuf; in channel_collapse()
1983 node->rq_buflen = (long_u)(p - newbuf); in channel_collapse()
H A Dex_cmds.c2671 buf_T *newbuf; in do_ecmd() local
2681 newbuf = buflist_new(ffname, sfname, tlnum, in do_ecmd()
2683 if (newbuf != NULL && (flags & ECMD_ALTBUF)) in do_ecmd()
2684 curwin->w_alt_fnum = newbuf->b_fnum; in do_ecmd()
H A Dterminal.c438 buf_T *newbuf; in term_start() local
715 newbuf = curbuf; in term_start()
748 apply_autocmds(EVENT_TERMINALOPEN, NULL, NULL, FALSE, newbuf); in term_start()
750 apply_autocmds(EVENT_TERMINALWINOPEN, NULL, NULL, FALSE, newbuf); in term_start()
751 return newbuf; in term_start()
H A Dnormal.c3600 char_u *newbuf; in nv_ident() local
3774 newbuf = vim_realloc(buf, STRLEN(buf) + STRLEN(p) + 1); in nv_ident()
3775 if (newbuf == NULL) in nv_ident()
3781 buf = newbuf; in nv_ident()
/vim-8.2.3635/src/testdir/
H A Dtest_terminal.vim1326 let newbuf = bufadd('')
1327 call bufload(newbuf)
1328 call setbufline(newbuf, 1, 'foobar')
1335 exe 'bwipe! ' .. newbuf
H A Dtest_popupwin.vim3720 let newbuf = bufnr()
3721 call assert_true(newbuf > popbuf, 'New buffer number is higher')
3722 call assert_equal(newbuf, bufnr('$'))
3727 call assert_equal(newbuf, bufnr('$'))
/vim-8.2.3635/runtime/doc/
H A Deval.txt3563 let newbuf = bufnr('Scratch001', 1)