Mirror of the Vim source from https://github.com/vim/vim
Revision | cd3689efd90a5934dcf2e4e232d97939737414c3 (tree) |
---|---|
Time | 2005-12-19 07:10:00 |
Author | vimboss |
Commiter | vimboss |
updated for version 7.0173
@@ -1,7 +1,7 @@ | ||
1 | 1 | " Vim completion script |
2 | 2 | " Language: C |
3 | 3 | " Maintainer: Bram Moolenaar <Bram@vim.org> |
4 | -" Last Change: 2005 Oct 06 | |
4 | +" Last Change: 2005 Dec 18 | |
5 | 5 | |
6 | 6 | |
7 | 7 | " This function is used for the 'omnifunc' option. |
@@ -87,7 +87,7 @@ | ||
87 | 87 | if diclist[i]['kind'] == 'v' |
88 | 88 | let line = diclist[i]['cmd'] |
89 | 89 | if line[0] == '/' && line[1] == '^' |
90 | - let col = match(line, items[0]) | |
90 | + let col = match(line, '\<' . items[0] . '\>') | |
91 | 91 | call extend(res, s:Nextitem(strpart(line, 2, col - 2), items[1:])) |
92 | 92 | endif |
93 | 93 | endif |
@@ -1,4 +1,4 @@ | ||
1 | -*autocmd.txt* For Vim version 7.0aa. Last change: 2005 Dec 11 | |
1 | +*autocmd.txt* For Vim version 7.0aa. Last change: 2005 Dec 18 | |
2 | 2 | |
3 | 3 | |
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -447,6 +447,8 @@ | ||
447 | 447 | make some coffee. :) See |CursorHold-example| |
448 | 448 | for previewing tags. |
449 | 449 | This event is only triggered in Normal mode. |
450 | + While recording the CursorHold event is not | |
451 | + triggered. |q| | |
450 | 452 | Note: Interactive commands cannot be used for |
451 | 453 | this event. There is no hit-enter prompt, |
452 | 454 | the screen is updated directly (when needed). |
@@ -1,4 +1,4 @@ | ||
1 | -*todo.txt* For Vim version 7.0aa. Last change: 2005 Dec 17 | |
1 | +*todo.txt* For Vim version 7.0aa. Last change: 2005 Dec 18 | |
2 | 2 | |
3 | 3 | |
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -30,10 +30,6 @@ | ||
30 | 30 | *known-bugs* |
31 | 31 | -------------------- Known bugs and current work ----------------------- |
32 | 32 | |
33 | -When 'delcombine' is set in Select mode before a character with a combining | |
34 | -char the combining char is deleted when it shouldn't. (Tony Mechelynck, Nov | |
35 | -27) | |
36 | - | |
37 | 33 | ccomplete: |
38 | 34 | - When an option is set: In completion mode and the user types (identifier) |
39 | 35 | characters, advance to the first match instead of removing the popup menu. |
@@ -41,10 +37,11 @@ | ||
41 | 37 | - Complete the longest common match instead of the first match? |
42 | 38 | For all kinds of completions? Configurable? |
43 | 39 | - !_TAG_FILE_FORMAT and it's ilk are listed in the global completions |
44 | -- When completing something that is a structure, add the "." or "->". | |
40 | + Can't reproduce it right now... | |
41 | +- Window resize when poup is displayed | |
42 | +- When completing something that is a structure, add the "." or "->" right | |
43 | + away. How to figure out if it's a pointer or not? | |
45 | 44 | - When a typedef or struct is local to a file only use it in that file? |
46 | -- Window resize when poup is displayed | |
47 | -- page-up / page-down | |
48 | 45 | |
49 | 46 | spelling: |
50 | 47 | - Use KEEPCASE instead of "KEP". It applies to the word including affixes |
@@ -1,4 +1,4 @@ | ||
1 | -*version7.txt* For Vim version 7.0aa. Last change: 2005 Dec 17 | |
1 | +*version7.txt* For Vim version 7.0aa. Last change: 2005 Dec 18 | |
2 | 2 | |
3 | 3 | |
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -1499,4 +1499,11 @@ | ||
1499 | 1499 | the command line was not abandoned but it wasn't used either. Now abandon |
1500 | 1500 | typing the command line. |
1501 | 1501 | |
1502 | +'delcombine' was also used in Visual and Select mode and for commands like | |
1503 | +"cl". That was illogical and has been disabled. | |
1504 | + | |
1505 | +When recording while a CursorHold autocommand was defined special keys would | |
1506 | +appear in the register. Now the CursorHold event is not triggered while | |
1507 | +recording. | |
1508 | + | |
1502 | 1509 | vim:tw=78:ts=8:ft=help:norl: |
@@ -121,7 +121,9 @@ | ||
121 | 121 | static int ins_compl_get_exp __ARGS((pos_T *ini, int dir)); |
122 | 122 | static void ins_compl_delete __ARGS((void)); |
123 | 123 | static void ins_compl_insert __ARGS((void)); |
124 | -static int ins_compl_next __ARGS((int allow_get_expansion)); | |
124 | +static int ins_compl_next __ARGS((int allow_get_expansion, int count)); | |
125 | +static int ins_compl_key2dir __ARGS((int c)); | |
126 | +static int ins_compl_key2count __ARGS((int c)); | |
125 | 127 | static int ins_complete __ARGS((int c)); |
126 | 128 | static int quote_meta __ARGS((char_u *dest, char_u *str, int len)); |
127 | 129 | #endif /* FEAT_INS_EXPAND */ |
@@ -1043,6 +1045,8 @@ | ||
1043 | 1045 | case K_S_UP: /* <S-Up> */ |
1044 | 1046 | case K_PAGEUP: |
1045 | 1047 | case K_KPAGEUP: |
1048 | + if (pum_visible()) | |
1049 | + goto docomplete; | |
1046 | 1050 | ins_pageup(); |
1047 | 1051 | break; |
1048 | 1052 |
@@ -1056,6 +1060,8 @@ | ||
1056 | 1060 | case K_S_DOWN: /* <S-Down> */ |
1057 | 1061 | case K_PAGEDOWN: |
1058 | 1062 | case K_KPAGEDOWN: |
1063 | + if (pum_visible()) | |
1064 | + goto docomplete; | |
1059 | 1065 | ins_pagedown(); |
1060 | 1066 | break; |
1061 | 1067 |
@@ -1819,6 +1825,11 @@ | ||
1819 | 1825 | if (c == Ctrl_R) |
1820 | 1826 | return TRUE; |
1821 | 1827 | |
1828 | + /* Accept <PageUp> and <PageDown> if the popup menu is visible. */ | |
1829 | + if (pum_visible() && (c == K_PAGEUP || c == K_KPAGEUP || c == K_S_UP | |
1830 | + || c == K_PAGEDOWN || c == K_KPAGEDOWN || c == K_S_DOWN)) | |
1831 | + return TRUE; | |
1832 | + | |
1822 | 1833 | switch (ctrl_x_mode) |
1823 | 1834 | { |
1824 | 1835 | case 0: /* Not in any CTRL-X mode */ |
@@ -3272,11 +3283,14 @@ | ||
3272 | 3283 | * calls this function with "allow_get_expansion" FALSE. |
3273 | 3284 | */ |
3274 | 3285 | static int |
3275 | -ins_compl_next(allow_get_expansion) | |
3286 | +ins_compl_next(allow_get_expansion, count) | |
3276 | 3287 | int allow_get_expansion; |
3288 | + int count; /* repeat completion this many times; should | |
3289 | + be at least 1 */ | |
3277 | 3290 | { |
3278 | 3291 | int num_matches = -1; |
3279 | 3292 | int i; |
3293 | + int todo = count; | |
3280 | 3294 | |
3281 | 3295 | if (allow_get_expansion) |
3282 | 3296 | { |
@@ -3284,24 +3298,41 @@ | ||
3284 | 3298 | ins_compl_delete(); |
3285 | 3299 | } |
3286 | 3300 | compl_pending = FALSE; |
3287 | - if (compl_shows_dir == FORWARD && compl_shown_match->cp_next != NULL) | |
3288 | - compl_shown_match = compl_shown_match->cp_next; | |
3289 | - else if (compl_shows_dir == BACKWARD && compl_shown_match->cp_prev != NULL) | |
3290 | - compl_shown_match = compl_shown_match->cp_prev; | |
3291 | - else | |
3292 | - { | |
3293 | - compl_pending = TRUE; | |
3294 | - if (allow_get_expansion) | |
3295 | - { | |
3296 | - num_matches = ins_compl_get_exp(&compl_startpos, compl_direction); | |
3297 | - if (compl_pending) | |
3298 | - { | |
3299 | - if (compl_direction == compl_shows_dir) | |
3300 | - compl_shown_match = compl_curr_match; | |
3301 | - } | |
3301 | + | |
3302 | + /* Repeat this for when <PageUp> or <PageDown> is typed. But don't wrap | |
3303 | + * around. */ | |
3304 | + while (--todo >= 0) | |
3305 | + { | |
3306 | + if (compl_shows_dir == FORWARD && compl_shown_match->cp_next != NULL) | |
3307 | + { | |
3308 | + compl_shown_match = compl_shown_match->cp_next; | |
3309 | + if (compl_shown_match->cp_next != NULL | |
3310 | + && compl_shown_match->cp_next == compl_first_match) | |
3311 | + break; | |
3312 | + } | |
3313 | + else if (compl_shows_dir == BACKWARD | |
3314 | + && compl_shown_match->cp_prev != NULL) | |
3315 | + { | |
3316 | + compl_shown_match = compl_shown_match->cp_prev; | |
3317 | + if (compl_shown_match == compl_first_match) | |
3318 | + break; | |
3302 | 3319 | } |
3303 | 3320 | else |
3304 | - return -1; | |
3321 | + { | |
3322 | + compl_pending = TRUE; | |
3323 | + if (allow_get_expansion) | |
3324 | + { | |
3325 | + num_matches = ins_compl_get_exp(&compl_startpos, | |
3326 | + compl_direction); | |
3327 | + if (compl_pending) | |
3328 | + { | |
3329 | + if (compl_direction == compl_shows_dir) | |
3330 | + compl_shown_match = compl_curr_match; | |
3331 | + } | |
3332 | + } | |
3333 | + else | |
3334 | + return -1; | |
3335 | + } | |
3305 | 3336 | } |
3306 | 3337 | |
3307 | 3338 | /* Insert the text of the new completion */ |
@@ -3376,17 +3407,49 @@ | ||
3376 | 3407 | if (vim_is_ctrl_x_key(c) && c != Ctrl_X && c != Ctrl_R) |
3377 | 3408 | { |
3378 | 3409 | c = safe_vgetc(); /* Eat the character */ |
3379 | - if (c == Ctrl_P || c == Ctrl_L) | |
3380 | - compl_shows_dir = BACKWARD; | |
3381 | - else | |
3382 | - compl_shows_dir = FORWARD; | |
3383 | - (void)ins_compl_next(FALSE); | |
3410 | + compl_shows_dir = ins_compl_key2dir(c); | |
3411 | + (void)ins_compl_next(FALSE, ins_compl_key2count(c)); | |
3384 | 3412 | } |
3385 | 3413 | else if (c != Ctrl_R) |
3386 | 3414 | compl_interrupted = TRUE; |
3387 | 3415 | } |
3388 | 3416 | if (compl_pending && !got_int) |
3389 | - (void)ins_compl_next(FALSE); | |
3417 | + (void)ins_compl_next(FALSE, 1); | |
3418 | +} | |
3419 | + | |
3420 | +/* | |
3421 | + * Decide the direction of Insert mode complete from the key typed. | |
3422 | + * Returns BACKWARD or FORWARD. | |
3423 | + */ | |
3424 | + static int | |
3425 | +ins_compl_key2dir(c) | |
3426 | + int c; | |
3427 | +{ | |
3428 | + if (c == Ctrl_P || c == Ctrl_L || (pum_visible() | |
3429 | + && (c == K_PAGEUP || c == K_KPAGEUP || c == K_S_UP))) | |
3430 | + return BACKWARD; | |
3431 | + return FORWARD; | |
3432 | +} | |
3433 | + | |
3434 | +/* | |
3435 | + * Decide the number of completions to move forward. | |
3436 | + * Returns 1 for most keys, height of the popup menu for page-up/down keys. | |
3437 | + */ | |
3438 | + static int | |
3439 | +ins_compl_key2count(c) | |
3440 | + int c; | |
3441 | +{ | |
3442 | + int h; | |
3443 | + | |
3444 | + if (pum_visible() && (c == K_PAGEUP || c == K_KPAGEUP || c == K_S_UP | |
3445 | + || c == K_PAGEDOWN || c == K_KPAGEDOWN || c == K_S_DOWN)) | |
3446 | + { | |
3447 | + h = pum_get_height(); | |
3448 | + if (h > 3) | |
3449 | + h -= 2; /* keep some context */ | |
3450 | + return h; | |
3451 | + } | |
3452 | + return 1; | |
3390 | 3453 | } |
3391 | 3454 | |
3392 | 3455 | /* |
@@ -3403,10 +3466,7 @@ | ||
3403 | 3466 | colnr_T curs_col; /* cursor column */ |
3404 | 3467 | int n; |
3405 | 3468 | |
3406 | - if (c == Ctrl_P || c == Ctrl_L) | |
3407 | - compl_direction = BACKWARD; | |
3408 | - else | |
3409 | - compl_direction = FORWARD; | |
3469 | + compl_direction = ins_compl_key2dir(c); | |
3410 | 3470 | if (!compl_started) |
3411 | 3471 | { |
3412 | 3472 | /* First time we hit ^N or ^P (in a row, I mean) */ |
@@ -3783,7 +3843,7 @@ | ||
3783 | 3843 | /* |
3784 | 3844 | * Find next match. |
3785 | 3845 | */ |
3786 | - n = ins_compl_next(TRUE); | |
3846 | + n = ins_compl_next(TRUE, ins_compl_key2count(c)); | |
3787 | 3847 | |
3788 | 3848 | /* may undisplay the popup menu */ |
3789 | 3849 | ins_compl_upd_pum(); |
@@ -2110,7 +2110,7 @@ | ||
2110 | 2110 | return del_chars(1L, fixpos); |
2111 | 2111 | } |
2112 | 2112 | #endif |
2113 | - return del_bytes(1L, fixpos); | |
2113 | + return del_bytes(1L, fixpos, TRUE); | |
2114 | 2114 | } |
2115 | 2115 | |
2116 | 2116 | #if defined(FEAT_MBYTE) || defined(PROTO) |
@@ -2134,7 +2134,7 @@ | ||
2134 | 2134 | bytes += l; |
2135 | 2135 | p += l; |
2136 | 2136 | } |
2137 | - return del_bytes(bytes, fixpos); | |
2137 | + return del_bytes(bytes, fixpos, TRUE); | |
2138 | 2138 | } |
2139 | 2139 | #endif |
2140 | 2140 |
@@ -2146,9 +2146,10 @@ | ||
2146 | 2146 | * return FAIL for failure, OK otherwise |
2147 | 2147 | */ |
2148 | 2148 | int |
2149 | -del_bytes(count, fixpos) | |
2149 | +del_bytes(count, fixpos, use_delcombine) | |
2150 | 2150 | long count; |
2151 | 2151 | int fixpos; |
2152 | + int use_delcombine; /* 'delcombine' option applies */ | |
2152 | 2153 | { |
2153 | 2154 | char_u *oldp, *newp; |
2154 | 2155 | colnr_T oldlen; |
@@ -2169,7 +2170,8 @@ | ||
2169 | 2170 | #ifdef FEAT_MBYTE |
2170 | 2171 | /* If 'delcombine' is set and deleting (less than) one character, only |
2171 | 2172 | * delete the last combining character. */ |
2172 | - if (p_deco && enc_utf8 && utfc_ptr2len(oldp + col) >= count) | |
2173 | + if (p_deco && use_delcombine && enc_utf8 | |
2174 | + && utfc_ptr2len(oldp + col) >= count) | |
2173 | 2175 | { |
2174 | 2176 | int c1, c2; |
2175 | 2177 | int n; |
@@ -1843,7 +1843,8 @@ | ||
1843 | 1843 | curwin->w_cursor.coladd = 0; |
1844 | 1844 | } |
1845 | 1845 | #endif |
1846 | - (void)del_bytes((long)n, restart_edit == NUL && !virtual_op); | |
1846 | + (void)del_bytes((long)n, restart_edit == NUL && !virtual_op, | |
1847 | + oap->op_type == OP_DELETE && !oap->is_VIsual); | |
1847 | 1848 | } |
1848 | 1849 | else /* delete characters between lines */ |
1849 | 1850 | { |
@@ -1863,7 +1864,8 @@ | ||
1863 | 1864 | /* delete from start of line until op_end */ |
1864 | 1865 | curwin->w_cursor.col = 0; |
1865 | 1866 | (void)del_bytes((long)(oap->end.col + 1 - !oap->inclusive), |
1866 | - restart_edit == NUL && !virtual_op); | |
1867 | + restart_edit == NUL && !virtual_op, | |
1868 | + oap->op_type == OP_DELETE && !oap->is_VIsual); | |
1867 | 1869 | curwin->w_cursor = curpos; /* restore curwin->w_cursor */ |
1868 | 1870 | |
1869 | 1871 | (void)do_join(FALSE); |
@@ -4509,7 +4511,7 @@ | ||
4509 | 4511 | if (line_count < 0 && u_save_cursor() == FAIL) |
4510 | 4512 | break; |
4511 | 4513 | #ifdef FEAT_COMMENTS |
4512 | - (void)del_bytes((long)next_leader_len, FALSE); | |
4514 | + (void)del_bytes((long)next_leader_len, FALSE, FALSE); | |
4513 | 4515 | if (next_leader_len > 0) |
4514 | 4516 | mark_col_adjust(curwin->w_cursor.lnum, (colnr_T)0, 0L, |
4515 | 4517 | (long)-next_leader_len); |
@@ -139,8 +139,7 @@ | ||
139 | 139 | if (WaitForChar(raw_in, p_ut * 1000L) == 0) |
140 | 140 | { |
141 | 141 | #ifdef FEAT_AUTOCMD |
142 | - if (!did_cursorhold && has_cursorhold() | |
143 | - && get_real_state() == NORMAL_BUSY && maxlen >= 3) | |
142 | + if (trigger_cursorhold() && maxlen >= 3) | |
144 | 143 | { |
145 | 144 | buf[0] = K_SPECIAL; |
146 | 145 | buf[1] = KS_EXTRA; |
@@ -1037,8 +1037,7 @@ | ||
1037 | 1037 | if (WaitForChar(p_ut) == 0) |
1038 | 1038 | { |
1039 | 1039 | #ifdef FEAT_AUTOCMD |
1040 | - if (!did_cursorhold && has_cursorhold() | |
1041 | - && get_real_state() == NORMAL_BUSY && maxlen >= 3) | |
1040 | + if (trigger_cursorhold() && maxlen >= 3) | |
1042 | 1041 | { |
1043 | 1042 | buf[0] = K_SPECIAL; |
1044 | 1043 | buf[1] = KS_EXTRA; |
@@ -237,12 +237,28 @@ | ||
237 | 237 | |
238 | 238 | if (pum_selected >= 0) |
239 | 239 | { |
240 | - if (pum_first > pum_selected) | |
241 | - /* scroll down */ | |
242 | - pum_first = pum_selected; | |
243 | - else if (pum_first < pum_selected - pum_height + 1) | |
244 | - /* scroll up */ | |
245 | - pum_first = pum_selected - pum_height + 1; | |
240 | + if (pum_first > pum_selected - 4) | |
241 | + { | |
242 | + /* scroll down; when we did a jump it's probably a PageUp then | |
243 | + * scroll to put the selected entry at the bottom */ | |
244 | + if (pum_first > pum_selected - 2) | |
245 | + { | |
246 | + pum_first = pum_selected - pum_height + 1; | |
247 | + if (pum_first < 0) | |
248 | + pum_first = 0; | |
249 | + } | |
250 | + else | |
251 | + pum_first = pum_selected; | |
252 | + } | |
253 | + else if (pum_first < pum_selected - pum_height + 5) | |
254 | + { | |
255 | + /* scroll up; when we did a jump it's probably a PageDown then | |
256 | + * scroll to put the selected entry at the top */ | |
257 | + if (pum_first < pum_selected - pum_height + 1 + 2) | |
258 | + pum_first = pum_selected; | |
259 | + else | |
260 | + pum_first = pum_selected - pum_height + 1; | |
261 | + } | |
246 | 262 | |
247 | 263 | if (pum_height > 6) |
248 | 264 | { |
@@ -298,4 +314,14 @@ | ||
298 | 314 | return pum_array != NULL; |
299 | 315 | } |
300 | 316 | |
317 | +/* | |
318 | + * Return the height of the popup menu, the number of entries visible. | |
319 | + * Only valid when pum_visible() returns TRUE! | |
320 | + */ | |
321 | + int | |
322 | +pum_get_height() | |
323 | +{ | |
324 | + return pum_height; | |
325 | +} | |
326 | + | |
301 | 327 | #endif |
@@ -36,6 +36,7 @@ | ||
36 | 36 | int apply_autocmds __ARGS((EVENT_T event, char_u *fname, char_u *fname_io, int force, buf_T *buf)); |
37 | 37 | int apply_autocmds_retval __ARGS((EVENT_T event, char_u *fname, char_u *fname_io, int force, buf_T *buf, int *retval)); |
38 | 38 | int has_cursorhold __ARGS((void)); |
39 | +int trigger_cursorhold __ARGS((void)); | |
39 | 40 | int has_autocmd __ARGS((EVENT_T event, char_u *sfname, buf_T *buf)); |
40 | 41 | char_u *get_augroup_name __ARGS((expand_T *xp, int idx)); |
41 | 42 | char_u *set_context_in_autocmd __ARGS((expand_T *xp, char_u *arg, int doautocmd)); |
@@ -1,94 +1,94 @@ | ||
1 | 1 | /* misc1.c */ |
2 | -extern int get_indent __ARGS((void)); | |
3 | -extern int get_indent_lnum __ARGS((linenr_T lnum)); | |
4 | -extern int get_indent_buf __ARGS((buf_T *buf, linenr_T lnum)); | |
5 | -extern int get_indent_str __ARGS((char_u *ptr, int ts)); | |
6 | -extern int set_indent __ARGS((int size, int flags)); | |
7 | -extern int get_number_indent __ARGS((linenr_T lnum)); | |
8 | -extern int open_line __ARGS((int dir, int flags, int old_indent)); | |
9 | -extern int get_leader_len __ARGS((char_u *line, char_u **flags, int backward)); | |
10 | -extern int plines __ARGS((linenr_T lnum)); | |
11 | -extern int plines_win __ARGS((win_T *wp, linenr_T lnum, int winheight)); | |
12 | -extern int plines_nofill __ARGS((linenr_T lnum)); | |
13 | -extern int plines_win_nofill __ARGS((win_T *wp, linenr_T lnum, int winheight)); | |
14 | -extern int plines_win_nofold __ARGS((win_T *wp, linenr_T lnum)); | |
15 | -extern int plines_win_col __ARGS((win_T *wp, linenr_T lnum, long column)); | |
16 | -extern int plines_m_win __ARGS((win_T *wp, linenr_T first, linenr_T last)); | |
17 | -extern void ins_bytes __ARGS((char_u *p)); | |
18 | -extern void ins_bytes_len __ARGS((char_u *p, int len)); | |
19 | -extern void ins_char __ARGS((int c)); | |
20 | -extern void ins_char_bytes __ARGS((char_u *buf, int charlen)); | |
21 | -extern void ins_str __ARGS((char_u *s)); | |
22 | -extern int del_char __ARGS((int fixpos)); | |
23 | -extern int del_chars __ARGS((long count, int fixpos)); | |
24 | -extern int del_bytes __ARGS((long count, int fixpos)); | |
25 | -extern int truncate_line __ARGS((int fixpos)); | |
26 | -extern void del_lines __ARGS((long nlines, int undo)); | |
27 | -extern int gchar_pos __ARGS((pos_T *pos)); | |
28 | -extern int gchar_cursor __ARGS((void)); | |
29 | -extern void pchar_cursor __ARGS((int c)); | |
30 | -extern int inindent __ARGS((int extra)); | |
31 | -extern char_u *skip_to_option_part __ARGS((char_u *p)); | |
32 | -extern void changed __ARGS((void)); | |
33 | -extern void changed_bytes __ARGS((linenr_T lnum, colnr_T col)); | |
34 | -extern void appended_lines __ARGS((linenr_T lnum, long count)); | |
35 | -extern void appended_lines_mark __ARGS((linenr_T lnum, long count)); | |
36 | -extern void deleted_lines __ARGS((linenr_T lnum, long count)); | |
37 | -extern void deleted_lines_mark __ARGS((linenr_T lnum, long count)); | |
38 | -extern void changed_lines __ARGS((linenr_T lnum, colnr_T col, linenr_T lnume, long xtra)); | |
39 | -extern void unchanged __ARGS((buf_T *buf, int ff)); | |
40 | -extern void check_status __ARGS((buf_T *buf)); | |
41 | -extern void change_warning __ARGS((int col)); | |
42 | -extern int ask_yesno __ARGS((char_u *str, int direct)); | |
43 | -extern int get_keystroke __ARGS((void)); | |
44 | -extern int get_number __ARGS((int colon, int *mouse_used)); | |
45 | -extern int prompt_for_number __ARGS((int *mouse_used)); | |
46 | -extern void msgmore __ARGS((long n)); | |
47 | -extern void beep_flush __ARGS((void)); | |
48 | -extern void vim_beep __ARGS((void)); | |
49 | -extern void init_homedir __ARGS((void)); | |
50 | -extern void free_homedir __ARGS((void)); | |
51 | -extern void expand_env __ARGS((char_u *src, char_u *dst, int dstlen)); | |
52 | -extern void expand_env_esc __ARGS((char_u *srcp, char_u *dst, int dstlen, int esc, char_u *startstr)); | |
53 | -extern char_u *vim_getenv __ARGS((char_u *name, int *mustfree)); | |
54 | -extern char_u *expand_env_save __ARGS((char_u *src)); | |
55 | -extern void vim_setenv __ARGS((char_u *name, char_u *val)); | |
56 | -extern char_u *get_env_name __ARGS((expand_T *xp, int idx)); | |
57 | -extern void home_replace __ARGS((buf_T *buf, char_u *src, char_u *dst, int dstlen, int one)); | |
58 | -extern char_u *home_replace_save __ARGS((buf_T *buf, char_u *src)); | |
59 | -extern int fullpathcmp __ARGS((char_u *s1, char_u *s2, int checkname)); | |
60 | -extern char_u *gettail __ARGS((char_u *fname)); | |
61 | -extern char_u *gettail_sep __ARGS((char_u *fname)); | |
62 | -extern char_u *getnextcomp __ARGS((char_u *fname)); | |
63 | -extern char_u *get_past_head __ARGS((char_u *path)); | |
64 | -extern int vim_ispathsep __ARGS((int c)); | |
65 | -extern int vim_ispathlistsep __ARGS((int c)); | |
66 | -extern int dir_of_file_exists __ARGS((char_u *fname)); | |
67 | -extern int vim_fnamecmp __ARGS((char_u *x, char_u *y)); | |
68 | -extern int vim_fnamencmp __ARGS((char_u *x, char_u *y, size_t len)); | |
69 | -extern char_u *concat_fnames __ARGS((char_u *fname1, char_u *fname2, int sep)); | |
70 | -extern char_u *concat_str __ARGS((char_u *str1, char_u *str2)); | |
71 | -extern void add_pathsep __ARGS((char_u *p)); | |
72 | -extern char_u *FullName_save __ARGS((char_u *fname, int force)); | |
73 | -extern pos_T *find_start_comment __ARGS((int ind_maxcomment)); | |
74 | -extern void do_c_expr_indent __ARGS((void)); | |
75 | -extern int cin_islabel __ARGS((int ind_maxcomment)); | |
76 | -extern int cin_iscase __ARGS((char_u *s)); | |
77 | -extern int cin_isscopedecl __ARGS((char_u *s)); | |
78 | -extern int get_c_indent __ARGS((void)); | |
79 | -extern int get_expr_indent __ARGS((void)); | |
80 | -extern int get_lisp_indent __ARGS((void)); | |
81 | -extern void prepare_to_exit __ARGS((void)); | |
82 | -extern void preserve_exit __ARGS((void)); | |
83 | -extern int vim_fexists __ARGS((char_u *fname)); | |
84 | -extern void line_breakcheck __ARGS((void)); | |
85 | -extern void fast_breakcheck __ARGS((void)); | |
86 | -extern int expand_wildcards __ARGS((int num_pat, char_u **pat, int *num_file, char_u ***file, int flags)); | |
87 | -extern int match_suffix __ARGS((char_u *fname)); | |
88 | -extern int unix_expandpath __ARGS((garray_T *gap, char_u *path, int wildoff, int flags, int didstar)); | |
89 | -extern int gen_expand_wildcards __ARGS((int num_pat, char_u **pat, int *num_file, char_u ***file, int flags)); | |
90 | -extern void addfile __ARGS((garray_T *gap, char_u *f, int flags)); | |
91 | -extern char_u *get_cmd_output __ARGS((char_u *cmd, char_u *infile, int flags)); | |
92 | -extern void FreeWild __ARGS((int count, char_u **files)); | |
93 | -extern int goto_im __ARGS((void)); | |
2 | +int get_indent __ARGS((void)); | |
3 | +int get_indent_lnum __ARGS((linenr_T lnum)); | |
4 | +int get_indent_buf __ARGS((buf_T *buf, linenr_T lnum)); | |
5 | +int get_indent_str __ARGS((char_u *ptr, int ts)); | |
6 | +int set_indent __ARGS((int size, int flags)); | |
7 | +int get_number_indent __ARGS((linenr_T lnum)); | |
8 | +int open_line __ARGS((int dir, int flags, int old_indent)); | |
9 | +int get_leader_len __ARGS((char_u *line, char_u **flags, int backward)); | |
10 | +int plines __ARGS((linenr_T lnum)); | |
11 | +int plines_win __ARGS((win_T *wp, linenr_T lnum, int winheight)); | |
12 | +int plines_nofill __ARGS((linenr_T lnum)); | |
13 | +int plines_win_nofill __ARGS((win_T *wp, linenr_T lnum, int winheight)); | |
14 | +int plines_win_nofold __ARGS((win_T *wp, linenr_T lnum)); | |
15 | +int plines_win_col __ARGS((win_T *wp, linenr_T lnum, long column)); | |
16 | +int plines_m_win __ARGS((win_T *wp, linenr_T first, linenr_T last)); | |
17 | +void ins_bytes __ARGS((char_u *p)); | |
18 | +void ins_bytes_len __ARGS((char_u *p, int len)); | |
19 | +void ins_char __ARGS((int c)); | |
20 | +void ins_char_bytes __ARGS((char_u *buf, int charlen)); | |
21 | +void ins_str __ARGS((char_u *s)); | |
22 | +int del_char __ARGS((int fixpos)); | |
23 | +int del_chars __ARGS((long count, int fixpos)); | |
24 | +int del_bytes __ARGS((long count, int fixpos, int use_delcombine)); | |
25 | +int truncate_line __ARGS((int fixpos)); | |
26 | +void del_lines __ARGS((long nlines, int undo)); | |
27 | +int gchar_pos __ARGS((pos_T *pos)); | |
28 | +int gchar_cursor __ARGS((void)); | |
29 | +void pchar_cursor __ARGS((int c)); | |
30 | +int inindent __ARGS((int extra)); | |
31 | +char_u *skip_to_option_part __ARGS((char_u *p)); | |
32 | +void changed __ARGS((void)); | |
33 | +void changed_bytes __ARGS((linenr_T lnum, colnr_T col)); | |
34 | +void appended_lines __ARGS((linenr_T lnum, long count)); | |
35 | +void appended_lines_mark __ARGS((linenr_T lnum, long count)); | |
36 | +void deleted_lines __ARGS((linenr_T lnum, long count)); | |
37 | +void deleted_lines_mark __ARGS((linenr_T lnum, long count)); | |
38 | +void changed_lines __ARGS((linenr_T lnum, colnr_T col, linenr_T lnume, long xtra)); | |
39 | +void unchanged __ARGS((buf_T *buf, int ff)); | |
40 | +void check_status __ARGS((buf_T *buf)); | |
41 | +void change_warning __ARGS((int col)); | |
42 | +int ask_yesno __ARGS((char_u *str, int direct)); | |
43 | +int get_keystroke __ARGS((void)); | |
44 | +int get_number __ARGS((int colon, int *mouse_used)); | |
45 | +int prompt_for_number __ARGS((int *mouse_used)); | |
46 | +void msgmore __ARGS((long n)); | |
47 | +void beep_flush __ARGS((void)); | |
48 | +void vim_beep __ARGS((void)); | |
49 | +void init_homedir __ARGS((void)); | |
50 | +void free_homedir __ARGS((void)); | |
51 | +void expand_env __ARGS((char_u *src, char_u *dst, int dstlen)); | |
52 | +void expand_env_esc __ARGS((char_u *srcp, char_u *dst, int dstlen, int esc, char_u *startstr)); | |
53 | +char_u *vim_getenv __ARGS((char_u *name, int *mustfree)); | |
54 | +char_u *expand_env_save __ARGS((char_u *src)); | |
55 | +void vim_setenv __ARGS((char_u *name, char_u *val)); | |
56 | +char_u *get_env_name __ARGS((expand_T *xp, int idx)); | |
57 | +void home_replace __ARGS((buf_T *buf, char_u *src, char_u *dst, int dstlen, int one)); | |
58 | +char_u *home_replace_save __ARGS((buf_T *buf, char_u *src)); | |
59 | +int fullpathcmp __ARGS((char_u *s1, char_u *s2, int checkname)); | |
60 | +char_u *gettail __ARGS((char_u *fname)); | |
61 | +char_u *gettail_sep __ARGS((char_u *fname)); | |
62 | +char_u *getnextcomp __ARGS((char_u *fname)); | |
63 | +char_u *get_past_head __ARGS((char_u *path)); | |
64 | +int vim_ispathsep __ARGS((int c)); | |
65 | +int vim_ispathlistsep __ARGS((int c)); | |
66 | +int dir_of_file_exists __ARGS((char_u *fname)); | |
67 | +int vim_fnamecmp __ARGS((char_u *x, char_u *y)); | |
68 | +int vim_fnamencmp __ARGS((char_u *x, char_u *y, size_t len)); | |
69 | +char_u *concat_fnames __ARGS((char_u *fname1, char_u *fname2, int sep)); | |
70 | +char_u *concat_str __ARGS((char_u *str1, char_u *str2)); | |
71 | +void add_pathsep __ARGS((char_u *p)); | |
72 | +char_u *FullName_save __ARGS((char_u *fname, int force)); | |
73 | +pos_T *find_start_comment __ARGS((int ind_maxcomment)); | |
74 | +void do_c_expr_indent __ARGS((void)); | |
75 | +int cin_islabel __ARGS((int ind_maxcomment)); | |
76 | +int cin_iscase __ARGS((char_u *s)); | |
77 | +int cin_isscopedecl __ARGS((char_u *s)); | |
78 | +int get_c_indent __ARGS((void)); | |
79 | +int get_expr_indent __ARGS((void)); | |
80 | +int get_lisp_indent __ARGS((void)); | |
81 | +void prepare_to_exit __ARGS((void)); | |
82 | +void preserve_exit __ARGS((void)); | |
83 | +int vim_fexists __ARGS((char_u *fname)); | |
84 | +void line_breakcheck __ARGS((void)); | |
85 | +void fast_breakcheck __ARGS((void)); | |
86 | +int expand_wildcards __ARGS((int num_pat, char_u **pat, int *num_file, char_u ***file, int flags)); | |
87 | +int match_suffix __ARGS((char_u *fname)); | |
88 | +int unix_expandpath __ARGS((garray_T *gap, char_u *path, int wildoff, int flags, int didstar)); | |
89 | +int gen_expand_wildcards __ARGS((int num_pat, char_u **pat, int *num_file, char_u ***file, int flags)); | |
90 | +void addfile __ARGS((garray_T *gap, char_u *f, int flags)); | |
91 | +char_u *get_cmd_output __ARGS((char_u *cmd, char_u *infile, int flags)); | |
92 | +void FreeWild __ARGS((int count, char_u **files)); | |
93 | +int goto_im __ARGS((void)); | |
94 | 94 | /* vim: set ft=c : */ |
@@ -36,5 +36,5 @@ | ||
36 | 36 | #define VIM_VERSION_NODOT "vim70aa" |
37 | 37 | #define VIM_VERSION_SHORT "7.0aa" |
38 | 38 | #define VIM_VERSION_MEDIUM "7.0aa ALPHA" |
39 | -#define VIM_VERSION_LONG "VIM - Vi IMproved 7.0aa ALPHA (2005 Dec 17)" | |
40 | -#define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 7.0aa ALPHA (2005 Dec 17, compiled " | |
39 | +#define VIM_VERSION_LONG "VIM - Vi IMproved 7.0aa ALPHA (2005 Dec 18)" | |
40 | +#define VIM_VERSION_LONG_DATE "VIM - Vi IMproved 7.0aa ALPHA (2005 Dec 18, compiled " |