Lines Matching refs:action
497 int action, in close_buffer() argument
507 int unload_buf = (action != 0); in close_buffer()
508 int wipe_buf = (action == DOBUF_WIPE || action == DOBUF_WIPE_REUSE); in close_buffer()
509 int del_buf = (action == DOBUF_DEL || wipe_buf); in close_buffer()
713 if (action == DOBUF_WIPE_REUSE) in close_buffer()
1179 int action) in empty_curbuf() argument
1185 if (action == DOBUF_UNLOAD) in empty_curbuf()
1204 close_buffer(NULL, buf, action, FALSE, FALSE); in empty_curbuf()
1229 int action, in do_buffer_ext() argument
1237 int unload = (action == DOBUF_UNLOAD || action == DOBUF_DEL in do_buffer_ext()
1238 || action == DOBUF_WIPE || action == DOBUF_WIPE_REUSE); in do_buffer_ext()
1347 if (action != DOBUF_WIPE && action != DOBUF_WIPE_REUSE in do_buffer_ext()
1385 return empty_curbuf(TRUE, (flags & DOBUF_FORCEIT), action); in do_buffer_ext()
1403 close_buffer(NULL, buf, action, FALSE, FALSE); in do_buffer_ext()
1508 return empty_curbuf(FALSE, (flags & DOBUF_FORCEIT), action); in do_buffer_ext()
1514 if (action == DOBUF_SPLIT) // split window first in do_buffer_ext()
1533 if (action == DOBUF_GOTO && !can_abandon(curbuf, (flags & DOBUF_FORCEIT))) in do_buffer_ext()
1555 set_curbuf(buf, action); in do_buffer_ext()
1557 if (action == DOBUF_SPLIT) in do_buffer_ext()
1570 int action, in do_buffer() argument
1576 return do_buffer_ext(action, start, dir, count, in do_buffer()
1703 set_curbuf(buf_T *buf, int action) in set_curbuf() argument
1706 int unload = (action == DOBUF_UNLOAD || action == DOBUF_DEL in set_curbuf()
1707 || action == DOBUF_WIPE || action == DOBUF_WIPE_REUSE); in set_curbuf()
1754 unload ? action : (action == DOBUF_GOTO in set_curbuf()