Home
last modified time | relevance | path

Searched refs:LF_ISSET (Results 1 – 20 of 20) sorted by relevance

/openbsd/usr.bin/vi/common/
H A Dsearch.c50 if (LF_ISSET(SEARCH_MSG)) in search_init()
89 if (LF_ISSET(SEARCH_SET)) in search_init()
131 if (LF_ISSET(SEARCH_SET)) in search_init()
157 if (LF_ISSET(SEARCH_FILE)) { in f_search()
177 if (LF_ISSET(SEARCH_INCR)) { in f_search()
209 if (LF_ISSET(SEARCH_MSG)) in f_search()
214 if (LF_ISSET(SEARCH_MSG)) in f_search()
237 if (LF_ISSET(SEARCH_MSG)) in f_search()
264 if (LF_ISSET(SEARCH_MSG)) in f_search()
299 if (LF_ISSET(SEARCH_INCR)) { in b_search()
[all …]
H A Dcut.c97 if (LF_ISSET(CUT_NUMREQ) || (LF_ISSET(CUT_NUMOPT) && in cut()
98 (LF_ISSET(CUT_LINEMODE) || fm->lno != tm->lno))) { in cut()
108 } else if (LF_ISSET(CUT_NUMREQ) || (LF_ISSET(CUT_NUMOPT) && in cut()
109 (LF_ISSET(CUT_LINEMODE) || fm->lno != tm->lno))) { in cut()
134 if (LF_ISSET(CUT_LINEMODE)) { in cut()
H A Dexf.c217 if (!LF_ISSET(FS_OPENERR)) in file_init()
296 if (LF_ISSET(FS_SETALT)) in file_init()
317 if (file_end(sp, NULL, LF_ISSET(FS_FORCE))) { in file_init()
760 msgq(sp, M_ERR, LF_ISSET(FS_POSSIBLE) ? in file_write()
772 LF_ISSET(FS_POSSIBLE) ? in file_write()
783 msgq(sp, M_ERR, LF_ISSET(FS_POSSIBLE) ? in file_write()
819 (LF_ISSET(FS_APPEND) ? O_APPEND : O_TRUNC); in file_write()
888 if (!LF_ISSET(FS_APPEND)) in file_write()
908 if (LF_ISSET(FS_ALL) && !LF_ISSET(FS_APPEND)) { in file_write()
927 msgstr = LF_ISSET(FS_APPEND) ? in file_write()
[all …]
H A Dkey.c517 if (gp->i_cnt != 0 && LF_ISSET(EC_TIMEOUT)) in v_event_get()
524 if (gp->i_cnt == 0 || LF_ISSET(EC_INTERRUPT | EC_TIMEOUT)) { in v_event_get()
532 LF_ISSET(EC_INTERRUPT | EC_QUOTED | EC_RAW), timeout)) in v_event_get()
556 if (LF_ISSET(EC_INTERRUPT)) in v_event_get()
571 if (LF_ISSET(EC_INTERRUPT | EC_TIMEOUT)) in v_event_get()
597 !LF_ISSET(EC_MAPCOMMAND | EC_MAPINPUT) || in v_event_get()
603 LF_ISSET(EC_MAPCOMMAND) ? SEQ_COMMAND : SEQ_INPUT, &ispartial); in v_event_get()
632 nomap: if (!isdigit(evp->e_c) && LF_ISSET(EC_MAPNODIGIT)) in v_event_get()
643 if (LF_ISSET(EC_MAPNODIGIT) && in v_event_get()
H A Dmain.c235 if (silent && !LF_ISSET(SC_EX)) { in editor()
239 if (LF_ISSET(SC_EX) && F_ISSET(gp, G_SCRIPTED)) in editor()
340 F_SET(sp, LF_ISSET(SC_EX | SC_VI)); in editor()
422 F_SET(sp, LF_ISSET(SC_EX | SC_VI) | SC_STATUS_CNT); in editor()
H A Doptions.c707 if (LF_ISSET(OS_STRDUP) && (str = strdup(str)) == NULL) { in o_set()
713 if (LF_ISSET(OS_DEF)) in o_set()
714 if (LF_ISSET(OS_STR | OS_STRDUP)) { in o_set()
715 if (!LF_ISSET(OS_NOFREE) && op->o_def.str != NULL) in o_set()
721 if (LF_ISSET(OS_STR | OS_STRDUP)) { in o_set()
722 if (!LF_ISSET(OS_NOFREE) && op->o_cur.str != NULL) in o_set()
H A Drecover.c265 if (LF_ISSET(RCV_PRESERVE)) in rcv_sync()
269 if (LF_ISSET(RCV_EMAIL)) in rcv_sync()
284 if (LF_ISSET(RCV_SNAPSHOT)) { in rcv_sync()
306 if (LF_ISSET(RCV_ENDSESSION)) in rcv_sync()
H A Dutil.h23 #define LF_ISSET(f) FL_ISSET(flags, (f)) macro
H A Dline.c96 if (LF_ISSET(DBG_NOCACHE)) in db_get()
149 err1: if (LF_ISSET(DBG_FATAL)) in db_get()
H A Dmsg.c433 if (LF_ISSET(MSTAT_SHOWLAST)) { in msgq_status()
473 if (LF_ISSET(MSTAT_TRUNCATE) && len > sp->cols) { in msgq_status()
H A Dseq.c52 if (LF_ISSET(SEQ_NOOVERWRITE)) in seq_set()
/openbsd/usr.bin/vi/ex/
H A Dex_txt.c102 if (LF_ISSET(TXT_AUTOINDENT)) { in ex_txt()
166 if (LF_ISSET(TXT_BACKSLASH) && in ex_txt()
176 if (LF_ISSET(TXT_CR)) { in ex_txt()
205 if (LF_ISSET(TXT_AUTOINDENT)) { in ex_txt()
227 if (tp->len <= tp->ai && LF_ISSET(TXT_AUTOINDENT)) in ex_txt()
231 if (tp->len <= tp->ai && LF_ISSET(TXT_AUTOINDENT)) in ex_txt()
242 if (LF_ISSET(TXT_CNTRLD)) { in ex_txt()
279 if (!LF_ISSET(TXT_AUTOINDENT) || tp->len == 0) in ex_txt()
353 if (LF_ISSET(TXT_PROMPT)) in txt_prompt()
357 if (LF_ISSET(TXT_NUMBER) && O_ISSET(sp, O_NUMBER)) in txt_prompt()
[all …]
H A Dex_print.c104 if (LF_ISSET(E_C_HASH)) { in ex_print()
122 if (len == 0 && !LF_ISSET(E_C_LIST)) in ex_print()
142 if (len > 0 && ex_prchars(sp, p, &col, len, LF_ISSET(E_C_LIST), 0)) in ex_ldisplay()
144 if (!INTERRUPTED(sp) && LF_ISSET(E_C_LIST)) { in ex_ldisplay()
146 if (ex_prchars(sp, p, &col, 1, LF_ISSET(E_C_LIST), 0)) in ex_ldisplay()
206 if ((ch = *p++) == '\t' && !LF_ISSET(E_C_LIST)) in ex_prchars()
H A Dex_subst.c447 if (LF_ISSET(SUB_FIRST)) { in s()
463 if (*s != '\0' || (!rflag && LF_ISSET(SUB_MUSTSETR))) { in s()
881 if (!LF_ISSET(RE_C_TAG)) { in re_compile()
896 if (LF_ISSET(RE_C_SEARCH) && F_ISSET(sp, SC_RE_SEARCH)) { in re_compile()
900 if (LF_ISSET(RE_C_SUBST) && F_ISSET(sp, SC_RE_SUBST)) { in re_compile()
911 if (LF_ISSET(RE_C_TAG)) { in re_compile()
953 if (!LF_ISSET(RE_C_SILENT)) in re_compile()
958 if (LF_ISSET(RE_C_SEARCH)) in re_compile()
960 if (LF_ISSET(RE_C_SUBST)) in re_compile()
H A Dex.c1455 if (!LF_ISSET(E_C_HASH | E_C_LIST | E_C_PRINT | E_NOAUTO) && in ex_cmd()
1466 if (LF_ISSET(E_C_HASH | E_C_LIST | E_C_PRINT)) { in ex_cmd()
/openbsd/usr.bin/vi/vi/
H A Dv_txt.c360 if (LF_ISSET(TXT_PROMPT)) { in v_txt()
443 if (LF_ISSET(TXT_REPLAY)) { in v_txt()
526 if (LF_ISSET(TXT_RECORD)) { in v_txt()
591 if (LF_ISSET(TXT_REPLAY)) in v_txt()
599 if (LF_ISSET(TXT_RECORD)) { in v_txt()
832 if (!LF_ISSET(TXT_ESCAPE)) in v_txt()
880 if (LF_ISSET(TXT_REPLACE)) in v_txt()
1185 if (!LF_ISSET(TXT_CNTRLT)) in v_txt()
1351 if (LF_ISSET(TXT_REPLAY)) in v_txt()
1409 if (LF_ISSET(TXT_REPLAY)) in v_txt()
[all …]
H A Dvi.c622 if (F_ISSET(vp, VC_C1SET) && !LF_ISSET(V_CNT)) in v_cmd()
628 if (!LF_ISSET(V_OBUF) && F_ISSET(vp, VC_BUFFER)) in v_cmd()
632 if (LF_ISSET(V_RBUF)) { in v_cmd()
684 if (ismotion != NULL && ismotion->key != key && !LF_ISSET(V_MOVE)) { in v_cmd()
691 if (LF_ISSET(V_CHAR)) in v_cmd()
827 if (LF_ISSET(VM_RCM_SET)) { in v_motion()
H A Dvs_refresh.c436 if (!LF_ISSET(UPDATE_CURSOR)) in vs_paint()
730 if (LF_ISSET(UPDATE_SCREEN) && !IS_ONELINE(sp) && in vs_paint()
734 if (LF_ISSET(UPDATE_CURSOR)) { in vs_paint()
749 if (LF_ISSET(UPDATE_SCREEN)) in vs_paint()
/openbsd/usr.bin/vi/cl/
H A Dcl_read.c57 retest: if (LF_ISSET(EC_INTERRUPT) || cl_sigint) { in cl_event()
97 switch (cl_read(sp, LF_ISSET(EC_QUOTED | EC_RAW), in cl_event()
188 if (LF_ISSET(EC_QUOTED | EC_RAW) && !tcgetattr(STDIN_FILENO, &term1)) { in cl_read()
190 if (LF_ISSET(EC_QUOTED)) { in cl_read()
H A Dcl_screen.c63 if ((LF_ISSET(SC_EX) && F_ISSET(sp, SC_SCR_EX)) || in cl_screen()
64 (LF_ISSET(SC_VI) && F_ISSET(sp, SC_SCR_VI))) in cl_screen()
101 if (LF_ISSET(SC_EX)) { in cl_screen()