Lines Matching refs:LastChar

166     if (LastChar + num >= InputLim)  in c_insert()
169 if (Cursor < LastChar) { /* if I must move chars */ in c_insert()
170 for (cp = LastChar; cp >= Cursor; cp--) in c_insert()
175 LastChar += num; in c_insert()
183 if (num > LastChar - Cursor) in c_delafter()
184 num = (int) (LastChar - Cursor); /* bounds check */ in c_delafter()
192 for (cp = Cursor; cp <= LastChar; cp++) { in c_delafter()
198 for (cp = Cursor; cp + num <= LastChar; cp++) in c_delafter()
200 LastChar -= num; in c_delafter()
233 for (cp = Cursor - num; cp <= LastChar; cp++) { in c_delbefore()
239 for (cp = Cursor - num; cp + num <= LastChar; cp++) in c_delbefore()
241 LastChar -= num; in c_delbefore()
661 if (LastChar + buf_len - (q - op) >= InputLim) in c_expand()
663 (void) memmove(op + buf_len, q, (LastChar - q) * sizeof(Char)); in c_expand()
664 LastChar += buf_len - (q - op); in c_expand()
667 *LastChar = '\0'; in c_expand()
954 LastSaved = LastChar - InputBuf; in c_save_inputbuf()
971 LastChar = InputBuf + HistBuf.len; in GetHistLine()
978 Cursor = LastChar; in GetHistLine()
1007 LastChar = Strend(InputBuf); in GetHistLine()
1009 if (LastChar > InputBuf) { in GetHistLine()
1010 if (LastChar[-1] == '\n') in GetHistLine()
1011 LastChar--; in GetHistLine()
1013 if (LastChar[-1] == ' ') in GetHistLine()
1014 LastChar--; in GetHistLine()
1016 if (LastChar < InputBuf) in GetHistLine()
1017 LastChar = InputBuf; in GetHistLine()
1025 Cursor = LastChar; in GetHistLine()
1074 if (LastChar + sizeof(STRfwd)/sizeof(Char) + 2 + patbuf.len >= InputLim) in e_inc_search()
1084 *LastChar++ = '\n'; in e_inc_search()
1086 *cp; *LastChar++ = *cp++) in e_inc_search()
1088 *LastChar++ = pchar; in e_inc_search()
1090 *LastChar++ = *cp++) in e_inc_search()
1092 *LastChar = '\0'; in e_inc_search()
1108 if (LastChar + 1 >= InputLim) /*FIXBUF*/ in e_inc_search()
1112 *LastChar++ = ch; in e_inc_search()
1113 *LastChar = '\0'; in e_inc_search()
1147 cp = c_next_word(Cursor, LastChar, 1); in e_inc_search()
1149 if (LastChar + 1 >= InputLim) {/*FIXBUF*/ in e_inc_search()
1154 *LastChar++ = *Cursor++; in e_inc_search()
1157 *LastChar = '\0'; in e_inc_search()
1179 while (LastChar > InputBuf && *LastChar != '\n') in e_inc_search()
1180 *LastChar-- = '\0'; in e_inc_search()
1181 *LastChar = '\0'; in e_inc_search()
1200 LastChar : InputBuf; in e_inc_search()
1206 if (Cursor < InputBuf || Cursor > LastChar || in e_inc_search()
1213 LastChar : InputBuf; in e_inc_search()
1272 oldlc = LastChar; in v_search()
1277 LastChar = InputBuf; in v_search()
1295 LastChar = Cursor; in v_search()
1300 LastChar = oldlc; in v_search()
1322 LastChar = Cursor; in v_search()
1336 LastChar = InputBuf; in v_search()
1361 Cursor = LastChar = InputBuf; in v_search()
1370 *LastChar++ = '\n'; in v_search()
1371 *LastChar = '\0'; in v_search()
1431 if (LastChar + Argument * n >= InputLim) in e_insert_str()
1456 if (LastChar + Argument >= InputLim) in e_insert()
1502 if (LastChar + len >= InputLim) in InsertStr()
1538 if (LastChar + 1 >= InputLim) in e_digit()
1612 *LastChar++ = '\n'; /* for the benefit of CSH */ in e_newline()
1613 *LastChar = '\0'; /* just in case */ in e_newline()
1626 *LastChar++ = '\n'; /* for the benefit of CSH */ in e_newline_hold()
1627 *LastChar = '\0'; /* just in case */ in e_newline_hold()
1639 *LastChar++ = '\n'; /* for the benefit of CSH */ in e_newline_down_hist()
1640 *LastChar = '\0'; /* just in case */ in e_newline_down_hist()
1650 *LastChar = '\0'; /* just in case */ in e_send_eof()
1659 *LastChar = '\0'; /* just in case */ in e_complete()
1668 *LastChar = '\0'; /* just in case */ in e_complete_back()
1677 *LastChar = '\0'; /* just in case */ in e_complete_fwd()
1686 *LastChar = '\0'; /* just in case */ in e_complete_all()
1695 if (Cursor < LastChar) in v_cm_complete()
1697 *LastChar = '\0'; /* just in case */ in v_cm_complete()
1709 *LastChar = '\0'; /* just in case */ in e_toggle_hist()
1741 LastChar = Strend(InputBuf); in e_toggle_hist()
1742 if (LastChar > InputBuf) { in e_toggle_hist()
1743 if (LastChar[-1] == '\n') in e_toggle_hist()
1744 LastChar--; in e_toggle_hist()
1745 if (LastChar[-1] == ' ') in e_toggle_hist()
1746 LastChar--; in e_toggle_hist()
1747 if (LastChar < InputBuf) in e_toggle_hist()
1748 LastChar = InputBuf; in e_toggle_hist()
1756 Cursor = LastChar; in e_toggle_hist()
1769 *LastChar = '\0'; /* just in case */ in e_up_hist()
1797 *LastChar = '\0'; /* just in case */ in e_down_hist()
1837 xprintf("Cursor %d LastChar %d\n", Cursor - InputBuf, LastChar - InputBuf); in c_hsetpat()
1852 *LastChar = '\0'; /* just in case */ in e_up_search_hist()
1892 matched = (Strncmp(hl, InputBuf, (size_t) (LastChar - InputBuf)) || in e_up_search_hist()
1893 hl[LastChar-InputBuf]) && c_hmatch(hl); in e_up_search_hist()
1927 *LastChar = '\0'; /* just in case */ in e_down_search_hist()
1951 if ((Strncmp(hl, InputBuf, (size_t) (LastChar - InputBuf)) || in e_down_search_hist()
1952 hl[LastChar-InputBuf]) && c_hmatch(hl)) in e_down_search_hist()
1979 *LastChar = '\0'; /* just in case */ in e_helpme()
1988 *LastChar = '\0'; /* just in case */ in e_correct()
1997 *LastChar = '\0'; /* just in case */ in e_correctl()
2034 *LastChar = '\0'; /* just in case */ in e_list_choices()
2044 *LastChar = '\0'; /* just in case */ in e_list_all()
2054 *LastChar = '\0'; /* just in case */ in e_list_glob()
2063 *LastChar = '\0'; /* just in case */ in e_expand_glob()
2072 *LastChar = '\0'; /* just in case */ in e_normalize_path()
2081 *LastChar = '\0'; /* just in case */ in e_normalize_command()
2090 *LastChar = '\0'; /* just in case */ in e_expand_vars()
2102 *LastChar = '\0'; /* just in case */ in e_which()
2224 if (LastChar + len - (Cursor - start) >= InputLim) in e_dabbrev_expand()
2250 if (LastChar + len >= InputLim) in e_yank_kill()
2310 if (LastChar + ins_len - del_len >= InputLim) in e_yank_pop()
2423 if (Cursor == LastChar) {/* if I'm at the end */ in e_delnext()
2435 if (Cursor > LastChar) in e_delnext()
2436 Cursor = LastChar; /* bounds check */ in e_delnext()
2446 if (Cursor == LastChar) {/* if I'm at the end */ in e_delnext_eof()
2465 if (Cursor > LastChar) in e_delnext_eof()
2466 Cursor = LastChar; /* bounds check */ in e_delnext_eof()
2475 if (Cursor == LastChar) { /* if I'm at the end */ in e_delnext_list()
2477 *LastChar = '\0'; /* just in case */ in e_delnext_list()
2482 if (Cursor > LastChar) in e_delnext_list()
2483 Cursor = LastChar; /* bounds check */ in e_delnext_list()
2493 if (Cursor == LastChar) { /* if I'm at the end */ in e_delnext_list_eof()
2501 *LastChar = '\0'; /* just in case */ in e_delnext_list_eof()
2507 if (Cursor > LastChar) in e_delnext_list_eof()
2508 Cursor = LastChar; /* bounds check */ in e_delnext_list_eof()
2520 if (Cursor == LastChar && Cursor == InputBuf) { in e_list_eof()
2527 *LastChar = '\0'; /* just in case */ in e_list_eof()
2540 if (Cursor == LastChar) in e_delwordnext()
2544 cp = c_next_word(Cursor, LastChar, Argument); in e_delwordnext()
2549 if (Cursor > LastChar) in e_delwordnext()
2550 Cursor = LastChar; /* bounds check */ in e_delwordnext()
2559 Cursor = LastChar; in e_toend()
2594 c_push_kill(Cursor, LastChar); /* copy it */ in e_killend()
2595 LastChar = Cursor; /* zap! -- delete to end */ in e_killend()
2620 c_push_kill(InputBuf, LastChar); /* copy it */ in e_killall()
2621 Cursor = Mark = LastChar = InputBuf; /* zap! -- delete all of it */ in e_killall()
2677 if (Cursor == &InputBuf[0] || LastChar == &InputBuf[1]) { in e_charswitch()
2681 if (Cursor < LastChar) { in e_charswitch()
2779 if (Cursor < LastChar) { in e_charfwd()
2781 if (Cursor > LastChar) in e_charfwd()
2782 Cursor = LastChar; in e_charfwd()
2803 if (Cursor == LastChar) in e_wordfwd()
2807 Cursor = c_next_word(Cursor, LastChar, Argument); in e_wordfwd()
2824 if (Cursor == LastChar) in v_wordfwd()
2828 Cursor = c_nexword(Cursor, LastChar, Argument); in v_wordfwd()
2845 if (Cursor == LastChar) in v_wordbegnext()
2849 Cursor = c_next_word(Cursor, LastChar, Argument); in v_wordbegnext()
2850 if (Cursor < LastChar) in v_wordbegnext()
2874 LastChar = InputBuf; in v_repeat_srch()
2928 while (cp < LastChar && *cp != ch) in v_csearch_fwd()
2932 if (cp >= LastChar) in v_csearch_fwd()
2961 for (cp = InputBuf; cp < LastChar; cp++) { in v_action()
2968 LastChar = InputBuf; in v_action()
3000 while ((cp <= LastChar) && (isword(*cp))) in c_get_word()
3017 end = c_next_word(Cursor, LastChar, Argument); in e_uppercase()
3024 if (Cursor > LastChar) in e_uppercase()
3025 Cursor = LastChar; in e_uppercase()
3037 end = c_next_word(Cursor, LastChar, Argument); in e_capitalcase()
3053 if (Cursor > LastChar) in e_capitalcase()
3054 Cursor = LastChar; in e_capitalcase()
3065 end = c_next_word(Cursor, LastChar, Argument); in e_lowercase()
3072 if (Cursor > LastChar) in e_lowercase()
3073 Cursor = LastChar; in e_lowercase()
3257 if (Cursor < LastChar) in v_add()
3260 if (Cursor > LastChar) in v_add()
3261 Cursor = LastChar; in v_add()
3278 Cursor = LastChar; in v_addend()
3280 InsertPos = LastChar; /* Mark where insertion begins */ in v_addend()
3281 UndoPtr = LastChar; in v_addend()
3295 if (Cursor < LastChar) { in v_change_case()
3322 if (p == LastChar) in e_expand()
3464 *LastChar = '\0'; /* just in case */ in ExpandHistory()
3482 *LastChar = '\0'; /* just in case */ in e_magic_space()
3544 for (dp = oldc; cp < oldc && dp < LastChar; cp++) in e_copyprev()
3604 if (Cursor == LastChar) in v_endword()
3608 Cursor = c_endword(Cursor, LastChar, Argument, STRshwspace); in v_endword()
3626 if (Cursor == LastChar) in v_eword()
3630 Cursor = c_eword(Cursor, LastChar, Argument); in v_eword()
3745 for (cp = UndoPtr; cp <= LastChar; cp++) in v_undo()
3748 LastChar -= UndoSize; in v_undo()
3771 size = (int)(Cursor-LastChar); /* NOT NSL independant */ in v_undo()
3874 if (Cursor > LastChar) in MoveCursor()
3875 Cursor = LastChar; in MoveCursor()
3888 if (p < InputBuf || p > LastChar) in PutCursor()