Mercurial > vim
annotate src/version.c @ 6979:a25618cbc68a v7.4.807
patch 7.4.807
Problem: After CTRL-V CTRL-A mode isn't updated. (Hirohito Higashi)
Solution: Clear the command line or update the displayed command.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 04 Aug 2015 19:18:52 +0200 |
parents | b10995a2f7c3 |
children | f77d1f32c357 |
rev | line source |
---|---|
7 | 1 /* vi:set ts=8 sts=4 sw=4: |
2 * | |
3 * VIM - Vi IMproved by Bram Moolenaar | |
4 * | |
5 * Do ":help uganda" in Vim to read copying and usage conditions. | |
6 * Do ":help credits" in Vim to see a list of people who contributed. | |
7 * See README.txt for an overview of the Vim source code. | |
8 */ | |
9 | |
10 #include "vim.h" | |
11 | |
12 #ifdef AMIGA | |
13 # include <time.h> /* for time() */ | |
14 #endif | |
15 | |
16 /* | |
17 * Vim originated from Stevie version 3.6 (Fish disk 217) by GRWalter (Fred) | |
18 * It has been changed beyond recognition since then. | |
19 * | |
26 | 20 * Differences between version 6.x and 7.x can be found with ":help version7". |
7 | 21 * Differences between version 5.x and 6.x can be found with ":help version6". |
22 * Differences between version 4.x and 5.x can be found with ":help version5". | |
23 * Differences between version 3.0 and 4.x can be found with ":help version4". | |
24 * All the remarks about older versions have been removed, they are not very | |
25 * interesting. | |
26 */ | |
27 | |
28 #include "version.h" | |
29 | |
378 | 30 char *Version = VIM_VERSION_SHORT; |
31 static char *mediumVersion = VIM_VERSION_MEDIUM; | |
7 | 32 |
33 #if defined(HAVE_DATE_TIME) || defined(PROTO) | |
34 # if (defined(VMS) && defined(VAXC)) || defined(PROTO) | |
35 char longVersion[sizeof(VIM_VERSION_LONG_DATE) + sizeof(__DATE__) | |
36 + sizeof(__TIME__) + 3]; | |
4147 | 37 |
7 | 38 void |
39 make_version() | |
40 { | |
41 /* | |
42 * Construct the long version string. Necessary because | |
43 * VAX C can't catenate strings in the preprocessor. | |
44 */ | |
45 strcpy(longVersion, VIM_VERSION_LONG_DATE); | |
46 strcat(longVersion, __DATE__); | |
47 strcat(longVersion, " "); | |
48 strcat(longVersion, __TIME__); | |
49 strcat(longVersion, ")"); | |
50 } | |
51 # else | |
52 char *longVersion = VIM_VERSION_LONG_DATE __DATE__ " " __TIME__ ")"; | |
53 # endif | |
54 #else | |
55 char *longVersion = VIM_VERSION_LONG; | |
56 #endif | |
57 | |
5166
467efeee8f9e
updated for version 7.4a.009
Bram Moolenaar <bram@vim.org>
parents:
5164
diff
changeset
|
58 static void list_features __ARGS((void)); |
7 | 59 static void version_msg __ARGS((char *s)); |
60 | |
61 static char *(features[]) = | |
62 { | |
5316 | 63 #ifdef HAVE_ACL |
64 "+acl", | |
65 #else | |
66 "-acl", | |
67 #endif | |
7 | 68 #ifdef AMIGA /* only for Amiga systems */ |
69 # ifdef FEAT_ARP | |
70 "+ARP", | |
71 # else | |
72 "-ARP", | |
73 # endif | |
74 #endif | |
75 #ifdef FEAT_ARABIC | |
76 "+arabic", | |
77 #else | |
78 "-arabic", | |
79 #endif | |
80 #ifdef FEAT_AUTOCMD | |
81 "+autocmd", | |
82 #else | |
83 "-autocmd", | |
84 #endif | |
85 #ifdef FEAT_BEVAL | |
86 "+balloon_eval", | |
87 #else | |
88 "-balloon_eval", | |
89 #endif | |
90 #ifdef FEAT_BROWSE | |
91 "+browse", | |
92 #else | |
93 "-browse", | |
94 #endif | |
95 #ifdef NO_BUILTIN_TCAPS | |
96 "-builtin_terms", | |
97 #endif | |
98 #ifdef SOME_BUILTIN_TCAPS | |
99 "+builtin_terms", | |
100 #endif | |
101 #ifdef ALL_BUILTIN_TCAPS | |
102 "++builtin_terms", | |
103 #endif | |
104 #ifdef FEAT_BYTEOFF | |
105 "+byte_offset", | |
106 #else | |
107 "-byte_offset", | |
108 #endif | |
109 #ifdef FEAT_CINDENT | |
110 "+cindent", | |
111 #else | |
112 "-cindent", | |
113 #endif | |
114 #ifdef FEAT_CLIENTSERVER | |
115 "+clientserver", | |
116 #else | |
117 "-clientserver", | |
118 #endif | |
119 #ifdef FEAT_CLIPBOARD | |
120 "+clipboard", | |
121 #else | |
122 "-clipboard", | |
123 #endif | |
124 #ifdef FEAT_CMDL_COMPL | |
125 "+cmdline_compl", | |
126 #else | |
127 "-cmdline_compl", | |
128 #endif | |
129 #ifdef FEAT_CMDHIST | |
130 "+cmdline_hist", | |
131 #else | |
132 "-cmdline_hist", | |
133 #endif | |
134 #ifdef FEAT_CMDL_INFO | |
135 "+cmdline_info", | |
136 #else | |
137 "-cmdline_info", | |
138 #endif | |
139 #ifdef FEAT_COMMENTS | |
140 "+comments", | |
141 #else | |
142 "-comments", | |
143 #endif | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
144 #ifdef FEAT_CONCEAL |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
145 "+conceal", |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
146 #else |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
147 "-conceal", |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
148 #endif |
7 | 149 #ifdef FEAT_CRYPT |
150 "+cryptv", | |
151 #else | |
152 "-cryptv", | |
153 #endif | |
154 #ifdef FEAT_CSCOPE | |
155 "+cscope", | |
156 #else | |
157 "-cscope", | |
158 #endif | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
159 #ifdef FEAT_CURSORBIND |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
160 "+cursorbind", |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
161 #else |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
162 "-cursorbind", |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
163 #endif |
647 | 164 #ifdef CURSOR_SHAPE |
165 "+cursorshape", | |
166 #else | |
167 "-cursorshape", | |
168 #endif | |
7 | 169 #if defined(FEAT_CON_DIALOG) && defined(FEAT_GUI_DIALOG) |
170 "+dialog_con_gui", | |
171 #else | |
172 # if defined(FEAT_CON_DIALOG) | |
173 "+dialog_con", | |
174 # else | |
175 # if defined(FEAT_GUI_DIALOG) | |
176 "+dialog_gui", | |
177 # else | |
178 "-dialog", | |
179 # endif | |
180 # endif | |
181 #endif | |
182 #ifdef FEAT_DIFF | |
183 "+diff", | |
184 #else | |
185 "-diff", | |
186 #endif | |
187 #ifdef FEAT_DIGRAPHS | |
188 "+digraphs", | |
189 #else | |
190 "-digraphs", | |
191 #endif | |
6110 | 192 #ifdef FEAT_GUI_W32 |
193 # ifdef FEAT_DIRECTX | |
194 "+directx", | |
195 # else | |
196 "-directx", | |
197 # endif | |
198 #endif | |
7 | 199 #ifdef FEAT_DND |
200 "+dnd", | |
201 #else | |
202 "-dnd", | |
203 #endif | |
204 #ifdef EBCDIC | |
205 "+ebcdic", | |
206 #else | |
207 "-ebcdic", | |
208 #endif | |
209 #ifdef FEAT_EMACS_TAGS | |
210 "+emacs_tags", | |
211 #else | |
212 "-emacs_tags", | |
213 #endif | |
214 #ifdef FEAT_EVAL | |
215 "+eval", | |
216 #else | |
217 "-eval", | |
218 #endif | |
219 #ifdef FEAT_EX_EXTRA | |
220 "+ex_extra", | |
221 #else | |
222 "-ex_extra", | |
223 #endif | |
224 #ifdef FEAT_SEARCH_EXTRA | |
225 "+extra_search", | |
226 #else | |
227 "-extra_search", | |
228 #endif | |
229 #ifdef FEAT_FKMAP | |
230 "+farsi", | |
231 #else | |
232 "-farsi", | |
233 #endif | |
234 #ifdef FEAT_SEARCHPATH | |
235 "+file_in_path", | |
236 #else | |
237 "-file_in_path", | |
238 #endif | |
239 #ifdef FEAT_FIND_ID | |
240 "+find_in_path", | |
241 #else | |
242 "-find_in_path", | |
243 #endif | |
1621 | 244 #ifdef FEAT_FLOAT |
245 "+float", | |
246 #else | |
247 "-float", | |
248 #endif | |
7 | 249 #ifdef FEAT_FOLDING |
250 "+folding", | |
251 #else | |
252 "-folding", | |
253 #endif | |
254 #ifdef FEAT_FOOTER | |
255 "+footer", | |
256 #else | |
257 "-footer", | |
258 #endif | |
259 /* only interesting on Unix systems */ | |
260 #if !defined(USE_SYSTEM) && defined(UNIX) | |
261 "+fork()", | |
262 #endif | |
263 #ifdef FEAT_GETTEXT | |
264 # ifdef DYNAMIC_GETTEXT | |
265 "+gettext/dyn", | |
266 # else | |
267 "+gettext", | |
268 # endif | |
269 #else | |
270 "-gettext", | |
271 #endif | |
272 #ifdef FEAT_HANGULIN | |
273 "+hangul_input", | |
274 #else | |
275 "-hangul_input", | |
276 #endif | |
277 #if (defined(HAVE_ICONV_H) && defined(USE_ICONV)) || defined(DYNAMIC_ICONV) | |
278 # ifdef DYNAMIC_ICONV | |
279 "+iconv/dyn", | |
280 # else | |
281 "+iconv", | |
282 # endif | |
283 #else | |
284 "-iconv", | |
285 #endif | |
286 #ifdef FEAT_INS_EXPAND | |
287 "+insert_expand", | |
288 #else | |
289 "-insert_expand", | |
290 #endif | |
291 #ifdef FEAT_JUMPLIST | |
292 "+jumplist", | |
293 #else | |
294 "-jumplist", | |
295 #endif | |
296 #ifdef FEAT_KEYMAP | |
297 "+keymap", | |
298 #else | |
299 "-keymap", | |
300 #endif | |
301 #ifdef FEAT_LANGMAP | |
302 "+langmap", | |
303 #else | |
304 "-langmap", | |
305 #endif | |
306 #ifdef FEAT_LIBCALL | |
307 "+libcall", | |
308 #else | |
309 "-libcall", | |
310 #endif | |
311 #ifdef FEAT_LINEBREAK | |
312 "+linebreak", | |
313 #else | |
314 "-linebreak", | |
315 #endif | |
316 #ifdef FEAT_LISP | |
317 "+lispindent", | |
318 #else | |
319 "-lispindent", | |
320 #endif | |
321 #ifdef FEAT_LISTCMDS | |
322 "+listcmds", | |
323 #else | |
324 "-listcmds", | |
325 #endif | |
326 #ifdef FEAT_LOCALMAP | |
327 "+localmap", | |
328 #else | |
329 "-localmap", | |
330 #endif | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
331 #ifdef FEAT_LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
332 # ifdef DYNAMIC_LUA |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
333 "+lua/dyn", |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
334 # else |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
335 "+lua", |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
336 # endif |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
337 #else |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
338 "-lua", |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2275
diff
changeset
|
339 #endif |
7 | 340 #ifdef FEAT_MENU |
341 "+menu", | |
342 #else | |
343 "-menu", | |
344 #endif | |
345 #ifdef FEAT_SESSION | |
346 "+mksession", | |
347 #else | |
348 "-mksession", | |
349 #endif | |
350 #ifdef FEAT_MODIFY_FNAME | |
351 "+modify_fname", | |
352 #else | |
353 "-modify_fname", | |
354 #endif | |
355 #ifdef FEAT_MOUSE | |
356 "+mouse", | |
357 # ifdef FEAT_MOUSESHAPE | |
358 "+mouseshape", | |
359 # else | |
360 "-mouseshape", | |
361 # endif | |
362 # else | |
363 "-mouse", | |
364 #endif | |
3898 | 365 |
7 | 366 #if defined(UNIX) || defined(VMS) |
367 # ifdef FEAT_MOUSE_DEC | |
368 "+mouse_dec", | |
369 # else | |
370 "-mouse_dec", | |
371 # endif | |
372 # ifdef FEAT_MOUSE_GPM | |
373 "+mouse_gpm", | |
374 # else | |
375 "-mouse_gpm", | |
376 # endif | |
377 # ifdef FEAT_MOUSE_JSB | |
378 "+mouse_jsbterm", | |
379 # else | |
380 "-mouse_jsbterm", | |
381 # endif | |
382 # ifdef FEAT_MOUSE_NET | |
383 "+mouse_netterm", | |
384 # else | |
385 "-mouse_netterm", | |
386 # endif | |
387 #endif | |
3898 | 388 |
7 | 389 #ifdef __QNX__ |
390 # ifdef FEAT_MOUSE_PTERM | |
391 "+mouse_pterm", | |
392 # else | |
393 "-mouse_pterm", | |
394 # endif | |
395 #endif | |
3898 | 396 |
397 #if defined(UNIX) || defined(VMS) | |
398 # ifdef FEAT_MOUSE_SGR | |
399 "+mouse_sgr", | |
400 # else | |
401 "-mouse_sgr", | |
402 # endif | |
403 # ifdef FEAT_SYSMOUSE | |
404 "+mouse_sysmouse", | |
405 # else | |
406 "-mouse_sysmouse", | |
407 # endif | |
408 # ifdef FEAT_MOUSE_URXVT | |
409 "+mouse_urxvt", | |
410 # else | |
411 "-mouse_urxvt", | |
412 # endif | |
413 # ifdef FEAT_MOUSE_XTERM | |
414 "+mouse_xterm", | |
415 # else | |
416 "-mouse_xterm", | |
417 # endif | |
418 #endif | |
419 | |
7 | 420 #ifdef FEAT_MBYTE_IME |
421 # ifdef DYNAMIC_IME | |
422 "+multi_byte_ime/dyn", | |
423 # else | |
424 "+multi_byte_ime", | |
425 # endif | |
426 #else | |
427 # ifdef FEAT_MBYTE | |
428 "+multi_byte", | |
429 # else | |
430 "-multi_byte", | |
431 # endif | |
432 #endif | |
433 #ifdef FEAT_MULTI_LANG | |
434 "+multi_lang", | |
435 #else | |
436 "-multi_lang", | |
437 #endif | |
14 | 438 #ifdef FEAT_MZSCHEME |
132 | 439 # ifdef DYNAMIC_MZSCHEME |
440 "+mzscheme/dyn", | |
441 # else | |
14 | 442 "+mzscheme", |
132 | 443 # endif |
14 | 444 #else |
445 "-mzscheme", | |
446 #endif | |
7 | 447 #ifdef FEAT_NETBEANS_INTG |
448 "+netbeans_intg", | |
449 #else | |
450 "-netbeans_intg", | |
451 #endif | |
452 #ifdef FEAT_GUI_W32 | |
453 # ifdef FEAT_OLE | |
454 "+ole", | |
455 # else | |
456 "-ole", | |
457 # endif | |
458 #endif | |
459 #ifdef FEAT_PATH_EXTRA | |
460 "+path_extra", | |
461 #else | |
462 "-path_extra", | |
463 #endif | |
464 #ifdef FEAT_PERL | |
465 # ifdef DYNAMIC_PERL | |
466 "+perl/dyn", | |
467 # else | |
468 "+perl", | |
469 # endif | |
470 #else | |
471 "-perl", | |
472 #endif | |
2214
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
473 #ifdef FEAT_PERSISTENT_UNDO |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
474 "+persistent_undo", |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
475 #else |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
476 "-persistent_undo", |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2154
diff
changeset
|
477 #endif |
7 | 478 #ifdef FEAT_PRINTER |
479 # ifdef FEAT_POSTSCRIPT | |
480 "+postscript", | |
481 # else | |
482 "-postscript", | |
483 # endif | |
484 "+printer", | |
485 #else | |
486 "-printer", | |
487 #endif | |
170 | 488 #ifdef FEAT_PROFILE |
489 "+profile", | |
490 #else | |
491 "-profile", | |
492 #endif | |
7 | 493 #ifdef FEAT_PYTHON |
494 # ifdef DYNAMIC_PYTHON | |
495 "+python/dyn", | |
496 # else | |
497 "+python", | |
498 # endif | |
499 #else | |
500 "-python", | |
501 #endif | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
502 #ifdef FEAT_PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
503 # ifdef DYNAMIC_PYTHON3 |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
504 "+python3/dyn", |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
505 # else |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
506 "+python3", |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
507 # endif |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
508 #else |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
509 "-python3", |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
510 #endif |
7 | 511 #ifdef FEAT_QUICKFIX |
512 "+quickfix", | |
513 #else | |
514 "-quickfix", | |
515 #endif | |
857 | 516 #ifdef FEAT_RELTIME |
517 "+reltime", | |
518 #else | |
519 "-reltime", | |
520 #endif | |
7 | 521 #ifdef FEAT_RIGHTLEFT |
522 "+rightleft", | |
523 #else | |
524 "-rightleft", | |
525 #endif | |
526 #ifdef FEAT_RUBY | |
527 # ifdef DYNAMIC_RUBY | |
528 "+ruby/dyn", | |
529 # else | |
530 "+ruby", | |
531 # endif | |
532 #else | |
533 "-ruby", | |
534 #endif | |
535 #ifdef FEAT_SCROLLBIND | |
536 "+scrollbind", | |
537 #else | |
538 "-scrollbind", | |
539 #endif | |
540 #ifdef FEAT_SIGNS | |
541 "+signs", | |
542 #else | |
543 "-signs", | |
544 #endif | |
545 #ifdef FEAT_SMARTINDENT | |
546 "+smartindent", | |
547 #else | |
548 "-smartindent", | |
549 #endif | |
550 #ifdef FEAT_SNIFF | |
551 "+sniff", | |
552 #else | |
553 "-sniff", | |
554 #endif | |
1989 | 555 #ifdef STARTUPTIME |
556 "+startuptime", | |
557 #else | |
558 "-startuptime", | |
559 #endif | |
7 | 560 #ifdef FEAT_STL_OPT |
561 "+statusline", | |
562 #else | |
563 "-statusline", | |
564 #endif | |
565 #ifdef FEAT_SUN_WORKSHOP | |
566 "+sun_workshop", | |
567 #else | |
568 "-sun_workshop", | |
569 #endif | |
570 #ifdef FEAT_SYN_HL | |
571 "+syntax", | |
572 #else | |
573 "-syntax", | |
574 #endif | |
575 /* only interesting on Unix systems */ | |
576 #if defined(USE_SYSTEM) && (defined(UNIX) || defined(__EMX__)) | |
577 "+system()", | |
578 #endif | |
579 #ifdef FEAT_TAG_BINS | |
580 "+tag_binary", | |
581 #else | |
582 "-tag_binary", | |
583 #endif | |
584 #ifdef FEAT_TAG_OLDSTATIC | |
585 "+tag_old_static", | |
586 #else | |
587 "-tag_old_static", | |
588 #endif | |
589 #ifdef FEAT_TAG_ANYWHITE | |
590 "+tag_any_white", | |
591 #else | |
592 "-tag_any_white", | |
593 #endif | |
594 #ifdef FEAT_TCL | |
595 # ifdef DYNAMIC_TCL | |
596 "+tcl/dyn", | |
597 # else | |
598 "+tcl", | |
599 # endif | |
600 #else | |
601 "-tcl", | |
602 #endif | |
603 #if defined(UNIX) || defined(__EMX__) | |
604 /* only Unix (or OS/2 with EMX!) can have terminfo instead of termcap */ | |
605 # ifdef TERMINFO | |
606 "+terminfo", | |
607 # else | |
608 "-terminfo", | |
609 # endif | |
610 #else /* unix always includes termcap support */ | |
611 # ifdef HAVE_TGETENT | |
612 "+tgetent", | |
613 # else | |
614 "-tgetent", | |
615 # endif | |
616 #endif | |
617 #ifdef FEAT_TERMRESPONSE | |
618 "+termresponse", | |
619 #else | |
620 "-termresponse", | |
621 #endif | |
622 #ifdef FEAT_TEXTOBJ | |
623 "+textobjects", | |
624 #else | |
625 "-textobjects", | |
626 #endif | |
627 #ifdef FEAT_TITLE | |
628 "+title", | |
629 #else | |
630 "-title", | |
631 #endif | |
632 #ifdef FEAT_TOOLBAR | |
633 "+toolbar", | |
634 #else | |
635 "-toolbar", | |
636 #endif | |
637 #ifdef FEAT_USR_CMDS | |
638 "+user_commands", | |
639 #else | |
640 "-user_commands", | |
641 #endif | |
642 #ifdef FEAT_VERTSPLIT | |
643 "+vertsplit", | |
644 #else | |
645 "-vertsplit", | |
646 #endif | |
647 #ifdef FEAT_VIRTUALEDIT | |
648 "+virtualedit", | |
649 #else | |
650 "-virtualedit", | |
651 #endif | |
652 "+visual", | |
5735 | 653 #ifdef FEAT_VISUALEXTRA |
7 | 654 "+visualextra", |
5735 | 655 #else |
7 | 656 "-visualextra", |
657 #endif | |
658 #ifdef FEAT_VIMINFO | |
659 "+viminfo", | |
660 #else | |
661 "-viminfo", | |
662 #endif | |
663 #ifdef FEAT_VREPLACE | |
664 "+vreplace", | |
665 #else | |
666 "-vreplace", | |
667 #endif | |
668 #ifdef FEAT_WILDIGN | |
669 "+wildignore", | |
670 #else | |
671 "-wildignore", | |
672 #endif | |
673 #ifdef FEAT_WILDMENU | |
674 "+wildmenu", | |
675 #else | |
676 "-wildmenu", | |
677 #endif | |
678 #ifdef FEAT_WINDOWS | |
679 "+windows", | |
680 #else | |
681 "-windows", | |
682 #endif | |
683 #ifdef FEAT_WRITEBACKUP | |
684 "+writebackup", | |
685 #else | |
686 "-writebackup", | |
687 #endif | |
688 #if defined(UNIX) || defined(VMS) | |
689 # ifdef FEAT_X11 | |
690 "+X11", | |
691 # else | |
692 "-X11", | |
693 # endif | |
694 #endif | |
695 #ifdef FEAT_XFONTSET | |
696 "+xfontset", | |
697 #else | |
698 "-xfontset", | |
699 #endif | |
700 #ifdef FEAT_XIM | |
701 "+xim", | |
702 #else | |
703 "-xim", | |
704 #endif | |
705 #if defined(UNIX) || defined(VMS) | |
706 # ifdef USE_XSMP_INTERACT | |
707 "+xsmp_interact", | |
708 # else | |
709 # ifdef USE_XSMP | |
710 "+xsmp", | |
711 # else | |
712 "-xsmp", | |
713 # endif | |
714 # endif | |
715 # ifdef FEAT_XCLIPBOARD | |
716 "+xterm_clipboard", | |
717 # else | |
718 "-xterm_clipboard", | |
719 # endif | |
720 #endif | |
721 #ifdef FEAT_XTERM_SAVE | |
722 "+xterm_save", | |
723 #else | |
724 "-xterm_save", | |
725 #endif | |
726 #ifdef WIN3264 | |
727 # ifdef FEAT_XPM_W32 | |
728 "+xpm_w32", | |
729 # else | |
730 "-xpm_w32", | |
731 # endif | |
5316 | 732 #else |
733 # ifdef HAVE_XPM | |
734 "+xpm", | |
735 # else | |
736 "-xpm", | |
737 # endif | |
7 | 738 #endif |
739 NULL | |
740 }; | |
741 | |
742 static int included_patches[] = | |
743 { /* Add new patch number below this line */ | |
744 /**/ | |
6979 | 745 807, |
746 /**/ | |
6977 | 747 806, |
748 /**/ | |
6975 | 749 805, |
750 /**/ | |
6973 | 751 804, |
752 /**/ | |
6971 | 753 803, |
754 /**/ | |
6969 | 755 802, |
756 /**/ | |
6967 | 757 801, |
758 /**/ | |
6965 | 759 800, |
760 /**/ | |
6963 | 761 799, |
762 /**/ | |
6961 | 763 798, |
764 /**/ | |
6959 | 765 797, |
766 /**/ | |
6957 | 767 796, |
768 /**/ | |
6954 | 769 795, |
770 /**/ | |
6952 | 771 794, |
772 /**/ | |
6949 | 773 793, |
774 /**/ | |
6947 | 775 792, |
776 /**/ | |
6945 | 777 791, |
778 /**/ | |
6943 | 779 790, |
780 /**/ | |
6941 | 781 789, |
782 /**/ | |
6939 | 783 788, |
784 /**/ | |
6937 | 785 787, |
786 /**/ | |
6935 | 787 786, |
788 /**/ | |
6933 | 789 785, |
790 /**/ | |
6931 | 791 784, |
792 /**/ | |
6929 | 793 783, |
794 /**/ | |
6927 | 795 782, |
796 /**/ | |
6925 | 797 781, |
798 /**/ | |
6923 | 799 780, |
800 /**/ | |
6921 | 801 779, |
802 /**/ | |
6919 | 803 778, |
804 /**/ | |
6916 | 805 777, |
806 /**/ | |
6914 | 807 776, |
808 /**/ | |
6911 | 809 775, |
810 /**/ | |
6909 | 811 774, |
812 /**/ | |
6907 | 813 773, |
814 /**/ | |
6905 | 815 772, |
816 /**/ | |
6903 | 817 771, |
818 /**/ | |
6901 | 819 770, |
820 /**/ | |
6899 | 821 769, |
822 /**/ | |
6897 | 823 768, |
824 /**/ | |
6895 | 825 767, |
826 /**/ | |
6893 | 827 766, |
828 /**/ | |
6891 | 829 765, |
830 /**/ | |
6889 | 831 764, |
832 /**/ | |
6887 | 833 763, |
834 /**/ | |
6885 | 835 762, |
836 /**/ | |
6882 | 837 761, |
838 /**/ | |
6880 | 839 760, |
840 /**/ | |
6878 | 841 759, |
842 /**/ | |
6876 | 843 758, |
844 /**/ | |
6874 | 845 757, |
846 /**/ | |
6872 | 847 756, |
848 /**/ | |
6870 | 849 755, |
850 /**/ | |
6868 | 851 754, |
852 /**/ | |
6866 | 853 753, |
854 /**/ | |
6864 | 855 752, |
856 /**/ | |
6862 | 857 751, |
858 /**/ | |
6860 | 859 750, |
860 /**/ | |
6858 | 861 749, |
862 /**/ | |
6856 | 863 748, |
864 /**/ | |
6853 | 865 747, |
866 /**/ | |
6851 | 867 746, |
868 /**/ | |
6849 | 869 745, |
870 /**/ | |
6847 | 871 744, |
872 /**/ | |
6845 | 873 743, |
874 /**/ | |
6843 | 875 742, |
876 /**/ | |
6841 | 877 741, |
878 /**/ | |
6838 | 879 740, |
880 /**/ | |
6836 | 881 739, |
882 /**/ | |
6834 | 883 738, |
884 /**/ | |
6832 | 885 737, |
886 /**/ | |
6830 | 887 736, |
888 /**/ | |
6828 | 889 735, |
890 /**/ | |
6826 | 891 734, |
892 /**/ | |
6824 | 893 733, |
894 /**/ | |
6821 | 895 732, |
896 /**/ | |
6819 | 897 731, |
898 /**/ | |
6817 | 899 730, |
900 /**/ | |
6815 | 901 729, |
902 /**/ | |
6813 | 903 728, |
904 /**/ | |
6811 | 905 727, |
906 /**/ | |
6809 | 907 726, |
908 /**/ | |
6807 | 909 725, |
910 /**/ | |
6805 | 911 724, |
912 /**/ | |
6803 | 913 723, |
914 /**/ | |
6801 | 915 722, |
916 /**/ | |
6799 | 917 721, |
918 /**/ | |
6797 | 919 720, |
920 /**/ | |
6795 | 921 719, |
922 /**/ | |
6793 | 923 718, |
924 /**/ | |
6791 | 925 717, |
926 /**/ | |
6789 | 927 716, |
928 /**/ | |
6787 | 929 715, |
930 /**/ | |
6785 | 931 714, |
932 /**/ | |
6783 | 933 713, |
934 /**/ | |
6781 | 935 712, |
936 /**/ | |
6779 | 937 711, |
938 /**/ | |
6777 | 939 710, |
940 /**/ | |
6775 | 941 709, |
942 /**/ | |
6773 | 943 708, |
944 /**/ | |
6771 | 945 707, |
946 /**/ | |
6769 | 947 706, |
948 /**/ | |
6767 | 949 705, |
950 /**/ | |
6765 | 951 704, |
952 /**/ | |
6763 | 953 703, |
954 /**/ | |
6761 | 955 702, |
956 /**/ | |
6759 | 957 701, |
958 /**/ | |
6755 | 959 700, |
960 /**/ | |
6753 | 961 699, |
962 /**/ | |
6751 | 963 698, |
964 /**/ | |
6749 | 965 697, |
966 /**/ | |
6747 | 967 696, |
968 /**/ | |
6745 | 969 695, |
970 /**/ | |
6742 | 971 694, |
972 /**/ | |
6739 | 973 693, |
974 /**/ | |
6737
9a07975061ed
patch 7.4.692 for Problem: Defining SOLARIS for no good reason. (Danek Duvall)
Bram Moolenaar <bram@vim.org>
parents:
6735
diff
changeset
|
975 692, |
9a07975061ed
patch 7.4.692 for Problem: Defining SOLARIS for no good reason. (Danek Duvall)
Bram Moolenaar <bram@vim.org>
parents:
6735
diff
changeset
|
976 /**/ |
6735
f6021786b775
patch 7.4.691 for Problem: Can't build with MzScheme.
Bram Moolenaar <bram@vim.org>
parents:
6733
diff
changeset
|
977 691, |
f6021786b775
patch 7.4.691 for Problem: Can't build with MzScheme.
Bram Moolenaar <bram@vim.org>
parents:
6733
diff
changeset
|
978 /**/ |
6733
5f6077b10738
patch 7.4.690 for Problem: Memory access errors when changing indent in Ex mode. Also missing
Bram Moolenaar <bram@vim.org>
parents:
6731
diff
changeset
|
979 690, |
5f6077b10738
patch 7.4.690 for Problem: Memory access errors when changing indent in Ex mode. Also missing
Bram Moolenaar <bram@vim.org>
parents:
6731
diff
changeset
|
980 /**/ |
6731 | 981 689, |
982 /**/ | |
6729 | 983 688, |
984 /**/ | |
6727 | 985 687, |
986 /**/ | |
6725 | 987 686, |
988 /**/ | |
6723 | 989 685, |
990 /**/ | |
6721 | 991 684, |
992 /**/ | |
6719 | 993 683, |
994 /**/ | |
6717 | 995 682, |
996 /**/ | |
6714 | 997 681, |
998 /**/ | |
6712 | 999 680, |
1000 /**/ | |
6710 | 1001 679, |
1002 /**/ | |
6708 | 1003 678, |
1004 /**/ | |
6706 | 1005 677, |
1006 /**/ | |
6704 | 1007 676, |
1008 /**/ | |
6702 | 1009 675, |
1010 /**/ | |
6700 | 1011 674, |
1012 /**/ | |
6698 | 1013 673, |
1014 /**/ | |
6695 | 1015 672, |
1016 /**/ | |
6693 | 1017 671, |
1018 /**/ | |
6691 | 1019 670, |
1020 /**/ | |
6689 | 1021 669, |
1022 /**/ | |
6687 | 1023 668, |
1024 /**/ | |
6685 | 1025 667, |
1026 /**/ | |
6683 | 1027 666, |
1028 /**/ | |
6681 | 1029 665, |
1030 /**/ | |
6679 | 1031 664, |
1032 /**/ | |
6677 | 1033 663, |
1034 /**/ | |
6675 | 1035 662, |
1036 /**/ | |
6673 | 1037 661, |
1038 /**/ | |
6671 | 1039 660, |
1040 /**/ | |
6669 | 1041 659, |
1042 /**/ | |
6667 | 1043 658, |
1044 /**/ | |
6665 | 1045 657, |
1046 /**/ | |
6663 | 1047 656, |
1048 /**/ | |
6661 | 1049 655, |
1050 /**/ | |
6659 | 1051 654, |
1052 /**/ | |
6657 | 1053 653, |
1054 /**/ | |
6655 | 1055 652, |
1056 /**/ | |
6653 | 1057 651, |
1058 /**/ | |
6651 | 1059 650, |
1060 /**/ | |
6649 | 1061 649, |
1062 /**/ | |
6645 | 1063 648, |
1064 /**/ | |
6643 | 1065 647, |
1066 /**/ | |
6641 | 1067 646, |
1068 /**/ | |
6639 | 1069 645, |
1070 /**/ | |
6637 | 1071 644, |
1072 /**/ | |
6635 | 1073 643, |
1074 /**/ | |
6633 | 1075 642, |
1076 /**/ | |
6631 | 1077 641, |
1078 /**/ | |
6629 | 1079 640, |
1080 /**/ | |
6627 | 1081 639, |
1082 /**/ | |
6625 | 1083 638, |
1084 /**/ | |
6623 | 1085 637, |
1086 /**/ | |
6620 | 1087 636, |
1088 /**/ | |
6618 | 1089 635, |
1090 /**/ | |
6616 | 1091 634, |
1092 /**/ | |
6614 | 1093 633, |
1094 /**/ | |
6612 | 1095 632, |
1096 /**/ | |
6610 | 1097 631, |
1098 /**/ | |
6608 | 1099 630, |
1100 /**/ | |
6606 | 1101 629, |
1102 /**/ | |
6604 | 1103 628, |
1104 /**/ | |
6602 | 1105 627, |
1106 /**/ | |
6600 | 1107 626, |
1108 /**/ | |
6598 | 1109 625, |
1110 /**/ | |
6596 | 1111 624, |
1112 /**/ | |
6594 | 1113 623, |
1114 /**/ | |
6592 | 1115 622, |
1116 /**/ | |
6590 | 1117 621, |
1118 /**/ | |
6588 | 1119 620, |
1120 /**/ | |
6586 | 1121 619, |
1122 /**/ | |
6584 | 1123 618, |
1124 /**/ | |
6581 | 1125 617, |
1126 /**/ | |
6579 | 1127 616, |
1128 /**/ | |
6577 | 1129 615, |
1130 /**/ | |
6575 | 1131 614, |
1132 /**/ | |
6573 | 1133 613, |
1134 /**/ | |
6571 | 1135 612, |
1136 /**/ | |
6569 | 1137 611, |
1138 /**/ | |
6567 | 1139 610, |
1140 /**/ | |
6565 | 1141 609, |
1142 /**/ | |
6563 | 1143 608, |
1144 /**/ | |
6561 | 1145 607, |
1146 /**/ | |
6559 | 1147 606, |
1148 /**/ | |
6557 | 1149 605, |
1150 /**/ | |
6555 | 1151 604, |
1152 /**/ | |
6553 | 1153 603, |
1154 /**/ | |
6551 | 1155 602, |
1156 /**/ | |
6549 | 1157 601, |
1158 /**/ | |
6547 | 1159 600, |
1160 /**/ | |
6545 | 1161 599, |
1162 /**/ | |
6543 | 1163 598, |
1164 /**/ | |
6541 | 1165 597, |
1166 /**/ | |
6539 | 1167 596, |
1168 /**/ | |
6537 | 1169 595, |
1170 /**/ | |
6535 | 1171 594, |
1172 /**/ | |
6533 | 1173 593, |
1174 /**/ | |
6531 | 1175 592, |
1176 /**/ | |
6528 | 1177 591, |
1178 /**/ | |
6526 | 1179 590, |
1180 /**/ | |
6524 | 1181 589, |
1182 /**/ | |
6522 | 1183 588, |
1184 /**/ | |
6520 | 1185 587, |
1186 /**/ | |
6518 | 1187 586, |
1188 /**/ | |
6516 | 1189 585, |
1190 /**/ | |
6514 | 1191 584, |
1192 /**/ | |
6512 | 1193 583, |
1194 /**/ | |
6510 | 1195 582, |
1196 /**/ | |
6508 | 1197 581, |
1198 /**/ | |
6506 | 1199 580, |
1200 /**/ | |
6503 | 1201 579, |
1202 /**/ | |
6501 | 1203 578, |
1204 /**/ | |
6499 | 1205 577, |
1206 /**/ | |
6497 | 1207 576, |
1208 /**/ | |
6495 | 1209 575, |
1210 /**/ | |
6493 | 1211 574, |
1212 /**/ | |
6491 | 1213 573, |
1214 /**/ | |
6489 | 1215 572, |
1216 /**/ | |
6487 | 1217 571, |
1218 /**/ | |
6485 | 1219 570, |
1220 /**/ | |
6482 | 1221 569, |
1222 /**/ | |
6480 | 1223 568, |
1224 /**/ | |
6477 | 1225 567, |
1226 /**/ | |
6474 | 1227 566, |
1228 /**/ | |
6472 | 1229 565, |
1230 /**/ | |
6470 | 1231 564, |
1232 /**/ | |
6468 | 1233 563, |
1234 /**/ | |
6466 | 1235 562, |
1236 /**/ | |
6464 | 1237 561, |
1238 /**/ | |
6462 | 1239 560, |
1240 /**/ | |
6460 | 1241 559, |
1242 /**/ | |
6458 | 1243 558, |
1244 /**/ | |
6456 | 1245 557, |
1246 /**/ | |
6454 | 1247 556, |
1248 /**/ | |
6452 | 1249 555, |
1250 /**/ | |
6450 | 1251 554, |
1252 /**/ | |
6448 | 1253 553, |
1254 /**/ | |
6445 | 1255 552, |
1256 /**/ | |
6443 | 1257 551, |
1258 /**/ | |
6441 | 1259 550, |
1260 /**/ | |
6438 | 1261 549, |
1262 /**/ | |
6436 | 1263 548, |
1264 /**/ | |
6434 | 1265 547, |
1266 /**/ | |
6432 | 1267 546, |
1268 /**/ | |
6430 | 1269 545, |
1270 /**/ | |
6428 | 1271 544, |
1272 /**/ | |
6426 | 1273 543, |
1274 /**/ | |
6424 | 1275 542, |
1276 /**/ | |
6422 | 1277 541, |
1278 /**/ | |
6419 | 1279 540, |
1280 /**/ | |
6417 | 1281 539, |
1282 /**/ | |
6415 | 1283 538, |
1284 /**/ | |
6413 | 1285 537, |
1286 /**/ | |
6411 | 1287 536, |
1288 /**/ | |
6409 | 1289 535, |
1290 /**/ | |
6406 | 1291 534, |
1292 /**/ | |
6404 | 1293 533, |
1294 /**/ | |
6402 | 1295 532, |
1296 /**/ | |
6400 | 1297 531, |
1298 /**/ | |
6398 | 1299 530, |
1300 /**/ | |
6396 | 1301 529, |
1302 /**/ | |
6394 | 1303 528, |
1304 /**/ | |
6392 | 1305 527, |
1306 /**/ | |
6390 | 1307 526, |
1308 /**/ | |
6388 | 1309 525, |
1310 /**/ | |
6386 | 1311 524, |
1312 /**/ | |
6383 | 1313 523, |
1314 /**/ | |
6381 | 1315 522, |
1316 /**/ | |
6379 | 1317 521, |
1318 /**/ | |
6377 | 1319 520, |
1320 /**/ | |
6375 | 1321 519, |
1322 /**/ | |
6373 | 1323 518, |
1324 /**/ | |
6371 | 1325 517, |
1326 /**/ | |
6367 | 1327 516, |
1328 /**/ | |
6365 | 1329 515, |
1330 /**/ | |
6363 | 1331 514, |
1332 /**/ | |
6361 | 1333 513, |
1334 /**/ | |
6359 | 1335 512, |
1336 /**/ | |
6357 | 1337 511, |
1338 /**/ | |
6355 | 1339 510, |
1340 /**/ | |
6353 | 1341 509, |
1342 /**/ | |
6351 | 1343 508, |
1344 /**/ | |
6349 | 1345 507, |
1346 /**/ | |
6347 | 1347 506, |
1348 /**/ | |
6345 | 1349 505, |
1350 /**/ | |
6343 | 1351 504, |
1352 /**/ | |
6341 | 1353 503, |
1354 /**/ | |
6339 | 1355 502, |
1356 /**/ | |
6337 | 1357 501, |
1358 /**/ | |
6334 | 1359 500, |
1360 /**/ | |
6332 | 1361 499, |
1362 /**/ | |
6330 | 1363 498, |
1364 /**/ | |
6328 | 1365 497, |
1366 /**/ | |
6326 | 1367 496, |
1368 /**/ | |
6324 | 1369 495, |
1370 /**/ | |
6322 | 1371 494, |
1372 /**/ | |
6320 | 1373 493, |
1374 /**/ | |
6318 | 1375 492, |
1376 /**/ | |
6316 | 1377 491, |
1378 /**/ | |
6314 | 1379 490, |
1380 /**/ | |
6312 | 1381 489, |
1382 /**/ | |
6310 | 1383 488, |
1384 /**/ | |
6307 | 1385 487, |
1386 /**/ | |
6305 | 1387 486, |
1388 /**/ | |
6303 | 1389 485, |
1390 /**/ | |
6301 | 1391 484, |
1392 /**/ | |
6299 | 1393 483, |
1394 /**/ | |
6297 | 1395 482, |
1396 /**/ | |
6295 | 1397 481, |
1398 /**/ | |
6293 | 1399 480, |
1400 /**/ | |
6290 | 1401 479, |
1402 /**/ | |
6288 | 1403 478, |
1404 /**/ | |
6286 | 1405 477, |
1406 /**/ | |
6284 | 1407 476, |
1408 /**/ | |
6282 | 1409 475, |
1410 /**/ | |
6280 | 1411 474, |
1412 /**/ | |
6278 | 1413 473, |
1414 /**/ | |
6276 | 1415 472, |
1416 /**/ | |
6274 | 1417 471, |
1418 /**/ | |
6272 | 1419 470, |
1420 /**/ | |
6270 | 1421 469, |
1422 /**/ | |
6268 | 1423 468, |
1424 /**/ | |
6266 | 1425 467, |
1426 /**/ | |
6264 | 1427 466, |
1428 /**/ | |
6262 | 1429 465, |
1430 /**/ | |
6260 | 1431 464, |
1432 /**/ | |
6257 | 1433 463, |
1434 /**/ | |
6255 | 1435 462, |
1436 /**/ | |
6253 | 1437 461, |
1438 /**/ | |
6251 | 1439 460, |
1440 /**/ | |
6249 | 1441 459, |
1442 /**/ | |
6247 | 1443 458, |
1444 /**/ | |
6245 | 1445 457, |
1446 /**/ | |
6243 | 1447 456, |
1448 /**/ | |
6241 | 1449 455, |
1450 /**/ | |
6239 | 1451 454, |
1452 /**/ | |
6236 | 1453 453, |
1454 /**/ | |
6234 | 1455 452, |
1456 /**/ | |
6232 | 1457 451, |
1458 /**/ | |
6230 | 1459 450, |
1460 /**/ | |
6228 | 1461 449, |
1462 /**/ | |
6226 | 1463 448, |
1464 /**/ | |
6224 | 1465 447, |
1466 /**/ | |
6222 | 1467 446, |
1468 /**/ | |
6220 | 1469 445, |
1470 /**/ | |
6218 | 1471 444, |
1472 /**/ | |
6216 | 1473 443, |
1474 /**/ | |
6214 | 1475 442, |
1476 /**/ | |
6211 | 1477 441, |
1478 /**/ | |
6209 | 1479 440, |
1480 /**/ | |
6207 | 1481 439, |
1482 /**/ | |
6205 | 1483 438, |
1484 /**/ | |
6203 | 1485 437, |
1486 /**/ | |
6201 | 1487 436, |
1488 /**/ | |
6199 | 1489 435, |
1490 /**/ | |
6197 | 1491 434, |
1492 /**/ | |
6195 | 1493 433, |
1494 /**/ | |
6193 | 1495 432, |
1496 /**/ | |
6191 | 1497 431, |
1498 /**/ | |
6189 | 1499 430, |
1500 /**/ | |
6187 | 1501 429, |
1502 /**/ | |
6185 | 1503 428, |
1504 /**/ | |
6183 | 1505 427, |
1506 /**/ | |
6181 | 1507 426, |
1508 /**/ | |
6178 | 1509 425, |
1510 /**/ | |
6176 | 1511 424, |
1512 /**/ | |
6174 | 1513 423, |
1514 /**/ | |
6172 | 1515 422, |
1516 /**/ | |
6170 | 1517 421, |
1518 /**/ | |
6168 | 1519 420, |
1520 /**/ | |
6166 | 1521 419, |
1522 /**/ | |
6164 | 1523 418, |
1524 /**/ | |
6162 | 1525 417, |
1526 /**/ | |
6160 | 1527 416, |
1528 /**/ | |
6158
353442863d85
Update version number to 7.4.415
Bram Moolenaar <bram@vim.org>
parents:
6154
diff
changeset
|
1529 415, |
353442863d85
Update version number to 7.4.415
Bram Moolenaar <bram@vim.org>
parents:
6154
diff
changeset
|
1530 /**/ |
6154 | 1531 414, |
1532 /**/ | |
6151 | 1533 413, |
1534 /**/ | |
6149 | 1535 412, |
1536 /**/ | |
6147 | 1537 411, |
1538 /**/ | |
6145 | 1539 410, |
1540 /**/ | |
6143 | 1541 409, |
1542 /**/ | |
6140 | 1543 408, |
1544 /**/ | |
6138 | 1545 407, |
1546 /**/ | |
6136 | 1547 406, |
1548 /**/ | |
6134 | 1549 405, |
1550 /**/ | |
6132 | 1551 404, |
1552 /**/ | |
6130 | 1553 403, |
1554 /**/ | |
6128 | 1555 402, |
1556 /**/ | |
6126 | 1557 401, |
1558 /**/ | |
6124 | 1559 400, |
1560 /**/ | |
6122 | 1561 399, |
1562 /**/ | |
6120 | 1563 398, |
1564 /**/ | |
6118 | 1565 397, |
1566 /**/ | |
6116 | 1567 396, |
1568 /**/ | |
6114 | 1569 395, |
1570 /**/ | |
6112 | 1571 394, |
1572 /**/ | |
6110 | 1573 393, |
1574 /**/ | |
6108 | 1575 392, |
1576 /**/ | |
6106 | 1577 391, |
1578 /**/ | |
6104 | 1579 390, |
1580 /**/ | |
6102 | 1581 389, |
1582 /**/ | |
6100 | 1583 388, |
1584 /**/ | |
6098 | 1585 387, |
1586 /**/ | |
6096 | 1587 386, |
1588 /**/ | |
6094 | 1589 385, |
1590 /**/ | |
6092 | 1591 384, |
1592 /**/ | |
6089 | 1593 383, |
1594 /**/ | |
6087 | 1595 382, |
1596 /**/ | |
6085 | 1597 381, |
1598 /**/ | |
6083 | 1599 380, |
1600 /**/ | |
6081 | 1601 379, |
1602 /**/ | |
6079 | 1603 378, |
1604 /**/ | |
6077 | 1605 377, |
1606 /**/ | |
6075 | 1607 376, |
1608 /**/ | |
6073 | 1609 375, |
1610 /**/ | |
6071 | 1611 374, |
1612 /**/ | |
6068 | 1613 373, |
1614 /**/ | |
6066 | 1615 372, |
1616 /**/ | |
6064 | 1617 371, |
1618 /**/ | |
6062 | 1619 370, |
1620 /**/ | |
6060 | 1621 369, |
1622 /**/ | |
6058 | 1623 368, |
1624 /**/ | |
6056 | 1625 367, |
1626 /**/ | |
6054 | 1627 366, |
1628 /**/ | |
6052 | 1629 365, |
1630 /**/ | |
6049 | 1631 364, |
1632 /**/ | |
6047 | 1633 363, |
1634 /**/ | |
6045 | 1635 362, |
1636 /**/ | |
6043 | 1637 361, |
1638 /**/ | |
6041 | 1639 360, |
1640 /**/ | |
6039 | 1641 359, |
1642 /**/ | |
6037 | 1643 358, |
1644 /**/ | |
6035 | 1645 357, |
1646 /**/ | |
6033 | 1647 356, |
1648 /**/ | |
6030 | 1649 355, |
1650 /**/ | |
6028 | 1651 354, |
1652 /**/ | |
6026 | 1653 353, |
1654 /**/ | |
6024 | 1655 352, |
1656 /**/ | |
6022 | 1657 351, |
1658 /**/ | |
6020 | 1659 350, |
1660 /**/ | |
6018 | 1661 349, |
1662 /**/ | |
6016 | 1663 348, |
1664 /**/ | |
6014 | 1665 347, |
1666 /**/ | |
6012 | 1667 346, |
1668 /**/ | |
6010 | 1669 345, |
1670 /**/ | |
6007 | 1671 344, |
1672 /**/ | |
6005 | 1673 343, |
1674 /**/ | |
6003 | 1675 342, |
1676 /**/ | |
6001 | 1677 341, |
1678 /**/ | |
5999 | 1679 340, |
1680 /**/ | |
5997 | 1681 339, |
1682 /**/ | |
5995 | 1683 338, |
1684 /**/ | |
5993 | 1685 337, |
1686 /**/ | |
5991 | 1687 336, |
1688 /**/ | |
5989 | 1689 335, |
1690 /**/ | |
5987 | 1691 334, |
1692 /**/ | |
5985 | 1693 333, |
1694 /**/ | |
5983 | 1695 332, |
1696 /**/ | |
5981 | 1697 331, |
1698 /**/ | |
5979 | 1699 330, |
1700 /**/ | |
5977 | 1701 329, |
1702 /**/ | |
5975 | 1703 328, |
1704 /**/ | |
5973 | 1705 327, |
1706 /**/ | |
5971 | 1707 326, |
1708 /**/ | |
5969 | 1709 325, |
1710 /**/ | |
5966 | 1711 324, |
1712 /**/ | |
5964 | 1713 323, |
1714 /**/ | |
5962 | 1715 322, |
1716 /**/ | |
5960 | 1717 321, |
1718 /**/ | |
5958 | 1719 320, |
1720 /**/ | |
5956 | 1721 319, |
1722 /**/ | |
5954 | 1723 318, |
1724 /**/ | |
5952 | 1725 317, |
1726 /**/ | |
5950 | 1727 316, |
1728 /**/ | |
5948 | 1729 315, |
1730 /**/ | |
5946 | 1731 314, |
1732 /**/ | |
5944 | 1733 313, |
1734 /**/ | |
5942 | 1735 312, |
1736 /**/ | |
5940 | 1737 311, |
1738 /**/ | |
5938 | 1739 310, |
1740 /**/ | |
5936 | 1741 309, |
1742 /**/ | |
5934 | 1743 308, |
1744 /**/ | |
5932 | 1745 307, |
1746 /**/ | |
5930 | 1747 306, |
1748 /**/ | |
5927 | 1749 305, |
1750 /**/ | |
5925 | 1751 304, |
1752 /**/ | |
5923 | 1753 303, |
1754 /**/ | |
5921 | 1755 302, |
1756 /**/ | |
5919 | 1757 301, |
1758 /**/ | |
5917 | 1759 300, |
1760 /**/ | |
5915 | 1761 299, |
1762 /**/ | |
5913 | 1763 298, |
1764 /**/ | |
5911 | 1765 297, |
1766 /**/ | |
5909 | 1767 296, |
1768 /**/ | |
5905 | 1769 295, |
1770 /**/ | |
5903 | 1771 294, |
1772 /**/ | |
5901 | 1773 293, |
1774 /**/ | |
5899 | 1775 292, |
1776 /**/ | |
5897 | 1777 291, |
1778 /**/ | |
5895 | 1779 290, |
1780 /**/ | |
5893 | 1781 289, |
1782 /**/ | |
5891 | 1783 288, |
1784 /**/ | |
5889 | 1785 287, |
1786 /**/ | |
5887 | 1787 286, |
1788 /**/ | |
5885 | 1789 285, |
1790 /**/ | |
5883 | 1791 284, |
1792 /**/ | |
5881 | 1793 283, |
1794 /**/ | |
5879 | 1795 282, |
1796 /**/ | |
5877 | 1797 281, |
1798 /**/ | |
5875 | 1799 280, |
1800 /**/ | |
5873 | 1801 279, |
1802 /**/ | |
5871 | 1803 278, |
1804 /**/ | |
5869 | 1805 277, |
1806 /**/ | |
5867 | 1807 276, |
1808 /**/ | |
5865 | 1809 275, |
1810 /**/ | |
5863 | 1811 274, |
1812 /**/ | |
5860 | 1813 273, |
1814 /**/ | |
5858 | 1815 272, |
1816 /**/ | |
5856 | 1817 271, |
1818 /**/ | |
5854 | 1819 270, |
1820 /**/ | |
5852 | 1821 269, |
1822 /**/ | |
5850 | 1823 268, |
1824 /**/ | |
5848 | 1825 267, |
1826 /**/ | |
5846 | 1827 266, |
1828 /**/ | |
5844 | 1829 265, |
1830 /**/ | |
5842 | 1831 264, |
1832 /**/ | |
5840 | 1833 263, |
1834 /**/ | |
5838 | 1835 262, |
1836 /**/ | |
5836 | 1837 261, |
1838 /**/ | |
5834 | 1839 260, |
1840 /**/ | |
5832 | 1841 259, |
1842 /**/ | |
5830 | 1843 258, |
1844 /**/ | |
5828 | 1845 257, |
1846 /**/ | |
5826 | 1847 256, |
1848 /**/ | |
5824 | 1849 255, |
1850 /**/ | |
5822 | 1851 254, |
1852 /**/ | |
5820 | 1853 253, |
1854 /**/ | |
5818 | 1855 252, |
1856 /**/ | |
5816 | 1857 251, |
1858 /**/ | |
5812 | 1859 250, |
1860 /**/ | |
5810 | 1861 249, |
1862 /**/ | |
5808 | 1863 248, |
1864 /**/ | |
5806 | 1865 247, |
1866 /**/ | |
5804 | 1867 246, |
1868 /**/ | |
5802 | 1869 245, |
1870 /**/ | |
5800 | 1871 244, |
1872 /**/ | |
5798 | 1873 243, |
1874 /**/ | |
5796 | 1875 242, |
1876 /**/ | |
5794 | 1877 241, |
1878 /**/ | |
5792 | 1879 240, |
1880 /**/ | |
5790 | 1881 239, |
1882 /**/ | |
5788 | 1883 238, |
1884 /**/ | |
5786 | 1885 237, |
1886 /**/ | |
5784 | 1887 236, |
1888 /**/ | |
5782 | 1889 235, |
1890 /**/ | |
5780 | 1891 234, |
1892 /**/ | |
5778 | 1893 233, |
1894 /**/ | |
5776 | 1895 232, |
1896 /**/ | |
5774 | 1897 231, |
1898 /**/ | |
5772 | 1899 230, |
1900 /**/ | |
5770 | 1901 229, |
1902 /**/ | |
5768 | 1903 228, |
1904 /**/ | |
5766 | 1905 227, |
1906 /**/ | |
5764 | 1907 226, |
1908 /**/ | |
5761 | 1909 225, |
1910 /**/ | |
5759 | 1911 224, |
1912 /**/ | |
5757 | 1913 223, |
1914 /**/ | |
5755 | 1915 222, |
1916 /**/ | |
5753 | 1917 221, |
1918 /**/ | |
5751 | 1919 220, |
1920 /**/ | |
5749 | 1921 219, |
1922 /**/ | |
5747 | 1923 218, |
1924 /**/ | |
5745 | 1925 217, |
1926 /**/ | |
5743 | 1927 216, |
1928 /**/ | |
5741 | 1929 215, |
1930 /**/ | |
5739 | 1931 214, |
1932 /**/ | |
5737 | 1933 213, |
1934 /**/ | |
5735 | 1935 212, |
1936 /**/ | |
5732 | 1937 211, |
1938 /**/ | |
5730 | 1939 210, |
1940 /**/ | |
5728 | 1941 209, |
1942 /**/ | |
5726 | 1943 208, |
1944 /**/ | |
5724 | 1945 207, |
1946 /**/ | |
5722 | 1947 206, |
1948 /**/ | |
5720 | 1949 205, |
1950 /**/ | |
5718 | 1951 204, |
1952 /**/ | |
5716 | 1953 203, |
1954 /**/ | |
5714 | 1955 202, |
1956 /**/ | |
5712 | 1957 201, |
1958 /**/ | |
5710 | 1959 200, |
1960 /**/ | |
5708 | 1961 199, |
1962 /**/ | |
5706 | 1963 198, |
1964 /**/ | |
5704 | 1965 197, |
1966 /**/ | |
5702 | 1967 196, |
1968 /**/ | |
5700 | 1969 195, |
1970 /**/ | |
5698 | 1971 194, |
1972 /**/ | |
5695 | 1973 193, |
1974 /**/ | |
5693 | 1975 192, |
1976 /**/ | |
5690 | 1977 191, |
1978 /**/ | |
5688 | 1979 190, |
1980 /**/ | |
5686 | 1981 189, |
1982 /**/ | |
5684 | 1983 188, |
1984 /**/ | |
5682 | 1985 187, |
1986 /**/ | |
5680 | 1987 186, |
1988 /**/ | |
5678 | 1989 185, |
1990 /**/ | |
5676 | 1991 184, |
1992 /**/ | |
5674 | 1993 183, |
1994 /**/ | |
5672 | 1995 182, |
1996 /**/ | |
5670 | 1997 181, |
1998 /**/ | |
5668 | 1999 180, |
2000 /**/ | |
5666 | 2001 179, |
2002 /**/ | |
5664 | 2003 178, |
2004 /**/ | |
5661 | 2005 177, |
2006 /**/ | |
5659 | 2007 176, |
2008 /**/ | |
5657 | 2009 175, |
2010 /**/ | |
5655 | 2011 174, |
2012 /**/ | |
5653 | 2013 173, |
2014 /**/ | |
5651 | 2015 172, |
2016 /**/ | |
5649 | 2017 171, |
2018 /**/ | |
5647 | 2019 170, |
2020 /**/ | |
5645 | 2021 169, |
2022 /**/ | |
5643 | 2023 168, |
2024 /**/ | |
5641 | 2025 167, |
2026 /**/ | |
5639 | 2027 166, |
2028 /**/ | |
5637 | 2029 165, |
2030 /**/ | |
5635 | 2031 164, |
2032 /**/ | |
5633 | 2033 163, |
2034 /**/ | |
5631 | 2035 162, |
2036 /**/ | |
5629 | 2037 161, |
2038 /**/ | |
5627 | 2039 160, |
2040 /**/ | |
5625 | 2041 159, |
2042 /**/ | |
5623 | 2043 158, |
2044 /**/ | |
5621 | 2045 157, |
2046 /**/ | |
5619 | 2047 156, |
2048 /**/ | |
5616 | 2049 155, |
2050 /**/ | |
5614 | 2051 154, |
2052 /**/ | |
5612 | 2053 153, |
2054 /**/ | |
5610 | 2055 152, |
2056 /**/ | |
5608 | 2057 151, |
2058 /**/ | |
5606 | 2059 150, |
2060 /**/ | |
5604 | 2061 149, |
2062 /**/ | |
5602 | 2063 148, |
2064 /**/ | |
5600 | 2065 147, |
2066 /**/ | |
5598 | 2067 146, |
2068 /**/ | |
5596 | 2069 145, |
2070 /**/ | |
5594 | 2071 144, |
2072 /**/ | |
5592 | 2073 143, |
2074 /**/ | |
5590 | 2075 142, |
2076 /**/ | |
5588 | 2077 141, |
2078 /**/ | |
5586 | 2079 140, |
2080 /**/ | |
5584 | 2081 139, |
2082 /**/ | |
5582 | 2083 138, |
2084 /**/ | |
5580 | 2085 137, |
2086 /**/ | |
5578 | 2087 136, |
2088 /**/ | |
5575 | 2089 135, |
2090 /**/ | |
5573 | 2091 134, |
2092 /**/ | |
5571 | 2093 133, |
2094 /**/ | |
5569 | 2095 132, |
2096 /**/ | |
5566 | 2097 131, |
2098 /**/ | |
5564 | 2099 130, |
2100 /**/ | |
5562 | 2101 129, |
2102 /**/ | |
5560 | 2103 128, |
2104 /**/ | |
5558 | 2105 127, |
2106 /**/ | |
5556 | 2107 126, |
2108 /**/ | |
5553 | 2109 125, |
2110 /**/ | |
5551 | 2111 124, |
2112 /**/ | |
5549 | 2113 123, |
2114 /**/ | |
5547 | 2115 122, |
2116 /**/ | |
5545 | 2117 121, |
2118 /**/ | |
5543 | 2119 120, |
2120 /**/ | |
5541 | 2121 119, |
2122 /**/ | |
5539 | 2123 118, |
2124 /**/ | |
5537 | 2125 117, |
2126 /**/ | |
5535 | 2127 116, |
2128 /**/ | |
5533 | 2129 115, |
2130 /**/ | |
5531 | 2131 114, |
2132 /**/ | |
5529 | 2133 113, |
2134 /**/ | |
5527 | 2135 112, |
2136 /**/ | |
5525 | 2137 111, |
2138 /**/ | |
5523 | 2139 110, |
2140 /**/ | |
5521 | 2141 109, |
2142 /**/ | |
5519 | 2143 108, |
2144 /**/ | |
5517 | 2145 107, |
2146 /**/ | |
5515 | 2147 106, |
2148 /**/ | |
5513 | 2149 105, |
2150 /**/ | |
5511 | 2151 104, |
2152 /**/ | |
5508 | 2153 103, |
2154 /**/ | |
5506 | 2155 102, |
2156 /**/ | |
5504 | 2157 101, |
2158 /**/ | |
5502 | 2159 100, |
2160 /**/ | |
5500 | 2161 99, |
2162 /**/ | |
5498 | 2163 98, |
2164 /**/ | |
5496 | 2165 97, |
2166 /**/ | |
5494 | 2167 96, |
2168 /**/ | |
5492 | 2169 95, |
2170 /**/ | |
5490 | 2171 94, |
2172 /**/ | |
5488 | 2173 93, |
2174 /**/ | |
5485 | 2175 92, |
2176 /**/ | |
5483 | 2177 91, |
2178 /**/ | |
5481 | 2179 90, |
2180 /**/ | |
5479 | 2181 89, |
2182 /**/ | |
5477 | 2183 88, |
2184 /**/ | |
5475 | 2185 87, |
2186 /**/ | |
5473 | 2187 86, |
2188 /**/ | |
5471 | 2189 85, |
2190 /**/ | |
5469 | 2191 84, |
2192 /**/ | |
5467 | 2193 83, |
2194 /**/ | |
5464 | 2195 82, |
2196 /**/ | |
5462 | 2197 81, |
2198 /**/ | |
5460 | 2199 80, |
2200 /**/ | |
5458 | 2201 79, |
2202 /**/ | |
5456 | 2203 78, |
2204 /**/ | |
5454 | 2205 77, |
2206 /**/ | |
5452 | 2207 76, |
2208 /**/ | |
5450 | 2209 75, |
2210 /**/ | |
5448 | 2211 74, |
2212 /**/ | |
5446 | 2213 73, |
2214 /**/ | |
5444 | 2215 72, |
2216 /**/ | |
5442 | 2217 71, |
2218 /**/ | |
5440 | 2219 70, |
2220 /**/ | |
5438 | 2221 69, |
2222 /**/ | |
5436 | 2223 68, |
2224 /**/ | |
5434 | 2225 67, |
2226 /**/ | |
5432 | 2227 66, |
2228 /**/ | |
5430 | 2229 65, |
2230 /**/ | |
5428 | 2231 64, |
2232 /**/ | |
5426 | 2233 63, |
2234 /**/ | |
5423 | 2235 62, |
2236 /**/ | |
5421 | 2237 61, |
2238 /**/ | |
5419 | 2239 60, |
2240 /**/ | |
5417 | 2241 59, |
2242 /**/ | |
5415 | 2243 58, |
2244 /**/ | |
5413 | 2245 57, |
2246 /**/ | |
5411 | 2247 56, |
2248 /**/ | |
5409 | 2249 55, |
2250 /**/ | |
5407 | 2251 54, |
2252 /**/ | |
5405 | 2253 53, |
2254 /**/ | |
5403 | 2255 52, |
2256 /**/ | |
5401 | 2257 51, |
2258 /**/ | |
5398 | 2259 50, |
2260 /**/ | |
5396 | 2261 49, |
2262 /**/ | |
5394 | 2263 48, |
2264 /**/ | |
5392 | 2265 47, |
2266 /**/ | |
5390 | 2267 46, |
2268 /**/ | |
5388 | 2269 45, |
2270 /**/ | |
5386 | 2271 44, |
2272 /**/ | |
5384 | 2273 43, |
2274 /**/ | |
5382 | 2275 42, |
2276 /**/ | |
5380 | 2277 41, |
2278 /**/ | |
5378 | 2279 40, |
2280 /**/ | |
5376 | 2281 39, |
2282 /**/ | |
5374 | 2283 38, |
2284 /**/ | |
5372 | 2285 37, |
2286 /**/ | |
5370 | 2287 36, |
2288 /**/ | |
5367 | 2289 35, |
2290 /**/ | |
5365 | 2291 34, |
2292 /**/ | |
5363 | 2293 33, |
2294 /**/ | |
5360 | 2295 32, |
2296 /**/ | |
5358 | 2297 31, |
2298 /**/ | |
5356 | 2299 30, |
2300 /**/ | |
5353 | 2301 29, |
2302 /**/ | |
5351 | 2303 28, |
2304 /**/ | |
5349 | 2305 27, |
2306 /**/ | |
5347 | 2307 26, |
2308 /**/ | |
5345 | 2309 25, |
2310 /**/ | |
5343 | 2311 24, |
2312 /**/ | |
5341 | 2313 23, |
2314 /**/ | |
5338 | 2315 22, |
2316 /**/ | |
5336 | 2317 21, |
2318 /**/ | |
5334 | 2319 20, |
2320 /**/ | |
5332 | 2321 19, |
2322 /**/ | |
5330 | 2323 18, |
2324 /**/ | |
5328 | 2325 17, |
2326 /**/ | |
5326 | 2327 16, |
2328 /**/ | |
5324 | 2329 15, |
2330 /**/ | |
5322 | 2331 14, |
2332 /**/ | |
5320 | 2333 13, |
2334 /**/ | |
5318 | 2335 12, |
2336 /**/ | |
5316 | 2337 11, |
2338 /**/ | |
5314 | 2339 10, |
2340 /**/ | |
5312 | 2341 9, |
2342 /**/ | |
5310 | 2343 8, |
2344 /**/ | |
5308 | 2345 7, |
2346 /**/ | |
5306 | 2347 6, |
2348 /**/ | |
5304 | 2349 5, |
2350 /**/ | |
5302 | 2351 4, |
2352 /**/ | |
5300 | 2353 3, |
2354 /**/ | |
5298 | 2355 2, |
2356 /**/ | |
5296 | 2357 1, |
2358 /**/ | |
7 | 2359 0 |
2360 }; | |
2361 | |
1760 | 2362 /* |
2363 * Place to put a short description when adding a feature with a patch. | |
2364 * Keep it short, e.g.,: "relative numbers", "persistent undo". | |
2365 * Also add a comment marker to separate the lines. | |
2366 * See the official Vim patches for the diff format: It must use a context of | |
1777 | 2367 * one line only. Create it by hand or use "diff -C2" and edit the patch. |
1760 | 2368 */ |
2369 static char *(extra_patches[]) = | |
2370 { /* Add your patch description below this line */ | |
2371 /**/ | |
2372 NULL | |
2373 }; | |
2374 | |
7 | 2375 int |
2376 highest_patch() | |
2377 { | |
2378 int i; | |
2379 int h = 0; | |
2380 | |
2381 for (i = 0; included_patches[i] != 0; ++i) | |
2382 if (included_patches[i] > h) | |
2383 h = included_patches[i]; | |
2384 return h; | |
2385 } | |
2386 | |
2387 #if defined(FEAT_EVAL) || defined(PROTO) | |
2388 /* | |
2389 * Return TRUE if patch "n" has been included. | |
2390 */ | |
2391 int | |
2392 has_patch(n) | |
2393 int n; | |
2394 { | |
2395 int i; | |
2396 | |
2397 for (i = 0; included_patches[i] != 0; ++i) | |
2398 if (included_patches[i] == n) | |
2399 return TRUE; | |
2400 return FALSE; | |
2401 } | |
2402 #endif | |
2403 | |
2404 void | |
2405 ex_version(eap) | |
2406 exarg_T *eap; | |
2407 { | |
2408 /* | |
2409 * Ignore a ":version 9.99" command. | |
2410 */ | |
2411 if (*eap->arg == NUL) | |
2412 { | |
2413 msg_putchar('\n'); | |
2414 list_version(); | |
2415 } | |
2416 } | |
2417 | |
4147 | 2418 /* |
2419 * List all features aligned in columns, dictionary style. | |
2420 */ | |
2421 static void | |
2422 list_features() | |
2423 { | |
2424 int i; | |
2425 int ncol; | |
2426 int nrow; | |
2427 int nfeat = 0; | |
2428 int width = 0; | |
2429 | |
2430 /* Find the length of the longest feature name, use that + 1 as the column | |
2431 * width */ | |
2432 for (i = 0; features[i] != NULL; ++i) | |
2433 { | |
4160 | 2434 int l = (int)STRLEN(features[i]); |
4147 | 2435 |
2436 if (l > width) | |
2437 width = l; | |
2438 ++nfeat; | |
2439 } | |
2440 width += 1; | |
2441 | |
2442 if (Columns < width) | |
2443 { | |
2444 /* Not enough screen columns - show one per line */ | |
2445 for (i = 0; features[i] != NULL; ++i) | |
2446 { | |
2447 version_msg(features[i]); | |
2448 if (msg_col > 0) | |
2449 msg_putchar('\n'); | |
2450 } | |
2451 return; | |
2452 } | |
2453 | |
2454 /* The rightmost column doesn't need a separator. | |
2455 * Sacrifice it to fit in one more column if possible. */ | |
4170 | 2456 ncol = (int) (Columns + 1) / width; |
4147 | 2457 nrow = nfeat / ncol + (nfeat % ncol ? 1 : 0); |
2458 | |
4170 | 2459 /* i counts columns then rows. idx counts rows then columns. */ |
4147 | 2460 for (i = 0; !got_int && i < nrow * ncol; ++i) |
2461 { | |
2462 int idx = (i / ncol) + (i % ncol) * nrow; | |
2463 | |
2464 if (idx < nfeat) | |
2465 { | |
2466 int last_col = (i + 1) % ncol == 0; | |
2467 | |
2468 msg_puts((char_u *)features[idx]); | |
2469 if (last_col) | |
2470 { | |
2471 if (msg_col > 0) | |
2472 msg_putchar('\n'); | |
2473 } | |
2474 else | |
2475 { | |
2476 while (msg_col % width) | |
2477 msg_putchar(' '); | |
2478 } | |
2479 } | |
2480 else | |
4170 | 2481 { |
2482 if (msg_col > 0) | |
2483 msg_putchar('\n'); | |
2484 } | |
4147 | 2485 } |
2486 } | |
4160 | 2487 |
7 | 2488 void |
2489 list_version() | |
2490 { | |
2491 int i; | |
2492 int first; | |
2493 char *s = ""; | |
2494 | |
2495 /* | |
2496 * When adding features here, don't forget to update the list of | |
2497 * internal variables in eval.c! | |
2498 */ | |
2499 MSG(longVersion); | |
2500 #ifdef WIN3264 | |
2501 # ifdef FEAT_GUI_W32 | |
2502 # if defined(_MSC_VER) && (_MSC_VER <= 1010) | |
2503 /* Only MS VC 4.1 and earlier can do Win32s */ | |
1607 | 2504 MSG_PUTS(_("\nMS-Windows 16/32-bit GUI version")); |
7 | 2505 # else |
990 | 2506 # ifdef _WIN64 |
1607 | 2507 MSG_PUTS(_("\nMS-Windows 64-bit GUI version")); |
990 | 2508 # else |
1607 | 2509 MSG_PUTS(_("\nMS-Windows 32-bit GUI version")); |
990 | 2510 # endif |
7 | 2511 # endif |
2512 if (gui_is_win32s()) | |
2513 MSG_PUTS(_(" in Win32s mode")); | |
2514 # ifdef FEAT_OLE | |
2515 MSG_PUTS(_(" with OLE support")); | |
2516 # endif | |
2517 # else | |
1607 | 2518 # ifdef _WIN64 |
2519 MSG_PUTS(_("\nMS-Windows 64-bit console version")); | |
2520 # else | |
2521 MSG_PUTS(_("\nMS-Windows 32-bit console version")); | |
2522 # endif | |
7 | 2523 # endif |
2524 #endif | |
2525 #ifdef WIN16 | |
1607 | 2526 MSG_PUTS(_("\nMS-Windows 16-bit version")); |
7 | 2527 #endif |
2528 #ifdef MSDOS | |
2529 # ifdef DJGPP | |
1607 | 2530 MSG_PUTS(_("\n32-bit MS-DOS version")); |
7 | 2531 # else |
1607 | 2532 MSG_PUTS(_("\n16-bit MS-DOS version")); |
7 | 2533 # endif |
2534 #endif | |
2535 #ifdef MACOS | |
2536 # ifdef MACOS_X | |
2537 # ifdef MACOS_X_UNIX | |
2538 MSG_PUTS(_("\nMacOS X (unix) version")); | |
2539 # else | |
2540 MSG_PUTS(_("\nMacOS X version")); | |
2541 # endif | |
2542 #else | |
2543 MSG_PUTS(_("\nMacOS version")); | |
2544 # endif | |
2545 #endif | |
2546 | |
2547 #ifdef VMS | |
1705 | 2548 MSG_PUTS(_("\nOpenVMS version")); |
1045 | 2549 # ifdef HAVE_PATHDEF |
2550 if (*compiled_arch != NUL) | |
2551 { | |
2552 MSG_PUTS(" - "); | |
2553 MSG_PUTS(compiled_arch); | |
2554 } | |
2555 # endif | |
2556 | |
7 | 2557 #endif |
2558 | |
2559 /* Print the list of patch numbers if there is at least one. */ | |
2560 /* Print a range when patches are consecutive: "1-10, 12, 15-40, 42-45" */ | |
2561 if (included_patches[0] != 0) | |
2562 { | |
2563 MSG_PUTS(_("\nIncluded patches: ")); | |
2564 first = -1; | |
2565 /* find last one */ | |
2566 for (i = 0; included_patches[i] != 0; ++i) | |
2567 ; | |
2568 while (--i >= 0) | |
2569 { | |
2570 if (first < 0) | |
2571 first = included_patches[i]; | |
2572 if (i == 0 || included_patches[i - 1] != included_patches[i] + 1) | |
2573 { | |
2574 MSG_PUTS(s); | |
2575 s = ", "; | |
2576 msg_outnum((long)first); | |
2577 if (first != included_patches[i]) | |
2578 { | |
2579 MSG_PUTS("-"); | |
2580 msg_outnum((long)included_patches[i]); | |
2581 } | |
2582 first = -1; | |
2583 } | |
2584 } | |
2585 } | |
2586 | |
1760 | 2587 /* Print the list of extra patch descriptions if there is at least one. */ |
2588 if (extra_patches[0] != NULL) | |
2589 { | |
2590 MSG_PUTS(_("\nExtra patches: ")); | |
2591 s = ""; | |
2592 for (i = 0; extra_patches[i] != NULL; ++i) | |
2593 { | |
2594 MSG_PUTS(s); | |
2595 s = ", "; | |
2596 MSG_PUTS(extra_patches[i]); | |
2597 } | |
2598 } | |
2599 | |
7 | 2600 #ifdef MODIFIED_BY |
2601 MSG_PUTS("\n"); | |
2602 MSG_PUTS(_("Modified by ")); | |
2603 MSG_PUTS(MODIFIED_BY); | |
2604 #endif | |
2605 | |
2606 #ifdef HAVE_PATHDEF | |
2607 if (*compiled_user != NUL || *compiled_sys != NUL) | |
2608 { | |
2609 MSG_PUTS(_("\nCompiled ")); | |
2610 if (*compiled_user != NUL) | |
2611 { | |
2612 MSG_PUTS(_("by ")); | |
2613 MSG_PUTS(compiled_user); | |
2614 } | |
2615 if (*compiled_sys != NUL) | |
2616 { | |
2617 MSG_PUTS("@"); | |
2618 MSG_PUTS(compiled_sys); | |
2619 } | |
2620 } | |
2621 #endif | |
2622 | |
2623 #ifdef FEAT_HUGE | |
2624 MSG_PUTS(_("\nHuge version ")); | |
2625 #else | |
2626 # ifdef FEAT_BIG | |
2627 MSG_PUTS(_("\nBig version ")); | |
2628 # else | |
2629 # ifdef FEAT_NORMAL | |
2630 MSG_PUTS(_("\nNormal version ")); | |
2631 # else | |
2632 # ifdef FEAT_SMALL | |
2633 MSG_PUTS(_("\nSmall version ")); | |
2634 # else | |
2635 MSG_PUTS(_("\nTiny version ")); | |
2636 # endif | |
2637 # endif | |
2638 # endif | |
2639 #endif | |
2640 #ifndef FEAT_GUI | |
2641 MSG_PUTS(_("without GUI.")); | |
2642 #else | |
2643 # ifdef FEAT_GUI_GTK | |
2644 # ifdef FEAT_GUI_GNOME | |
2645 MSG_PUTS(_("with GTK2-GNOME GUI.")); | |
2646 # else | |
2647 MSG_PUTS(_("with GTK2 GUI.")); | |
2648 # endif | |
2649 # else | |
2650 # ifdef FEAT_GUI_MOTIF | |
2651 MSG_PUTS(_("with X11-Motif GUI.")); | |
2652 # else | |
2653 # ifdef FEAT_GUI_ATHENA | |
2654 # ifdef FEAT_GUI_NEXTAW | |
2655 MSG_PUTS(_("with X11-neXtaw GUI.")); | |
2656 # else | |
2657 MSG_PUTS(_("with X11-Athena GUI.")); | |
2658 # endif | |
2659 # else | |
2660 # ifdef FEAT_GUI_PHOTON | |
2661 MSG_PUTS(_("with Photon GUI.")); | |
2662 # else | |
2663 # if defined(MSWIN) | |
2664 MSG_PUTS(_("with GUI.")); | |
2665 # else | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
2666 # if defined(TARGET_API_MAC_CARBON) && TARGET_API_MAC_CARBON |
7 | 2667 MSG_PUTS(_("with Carbon GUI.")); |
2668 # else | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
2669 # if defined(TARGET_API_MAC_OSX) && TARGET_API_MAC_OSX |
7 | 2670 MSG_PUTS(_("with Cocoa GUI.")); |
2671 # else | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
2672 # if defined(MACOS) |
7 | 2673 MSG_PUTS(_("with (classic) GUI.")); |
2674 # endif | |
2675 # endif | |
2676 # endif | |
2677 # endif | |
2678 # endif | |
2679 # endif | |
2680 # endif | |
2681 # endif | |
2682 #endif | |
2683 version_msg(_(" Features included (+) or not (-):\n")); | |
2684 | |
4147 | 2685 list_features(); |
7 | 2686 |
2687 #ifdef SYS_VIMRC_FILE | |
2688 version_msg(_(" system vimrc file: \"")); | |
2689 version_msg(SYS_VIMRC_FILE); | |
2690 version_msg("\"\n"); | |
2691 #endif | |
2692 #ifdef USR_VIMRC_FILE | |
2693 version_msg(_(" user vimrc file: \"")); | |
2694 version_msg(USR_VIMRC_FILE); | |
2695 version_msg("\"\n"); | |
2696 #endif | |
2697 #ifdef USR_VIMRC_FILE2 | |
2698 version_msg(_(" 2nd user vimrc file: \"")); | |
2699 version_msg(USR_VIMRC_FILE2); | |
2700 version_msg("\"\n"); | |
2701 #endif | |
2702 #ifdef USR_VIMRC_FILE3 | |
2703 version_msg(_(" 3rd user vimrc file: \"")); | |
2704 version_msg(USR_VIMRC_FILE3); | |
2705 version_msg("\"\n"); | |
2706 #endif | |
2707 #ifdef USR_EXRC_FILE | |
2708 version_msg(_(" user exrc file: \"")); | |
2709 version_msg(USR_EXRC_FILE); | |
2710 version_msg("\"\n"); | |
2711 #endif | |
2712 #ifdef USR_EXRC_FILE2 | |
2713 version_msg(_(" 2nd user exrc file: \"")); | |
2714 version_msg(USR_EXRC_FILE2); | |
2715 version_msg("\"\n"); | |
2716 #endif | |
2717 #ifdef FEAT_GUI | |
2718 # ifdef SYS_GVIMRC_FILE | |
2719 version_msg(_(" system gvimrc file: \"")); | |
2720 version_msg(SYS_GVIMRC_FILE); | |
2721 version_msg("\"\n"); | |
2722 # endif | |
2723 version_msg(_(" user gvimrc file: \"")); | |
2724 version_msg(USR_GVIMRC_FILE); | |
2725 version_msg("\"\n"); | |
2726 # ifdef USR_GVIMRC_FILE2 | |
2727 version_msg(_("2nd user gvimrc file: \"")); | |
2728 version_msg(USR_GVIMRC_FILE2); | |
2729 version_msg("\"\n"); | |
2730 # endif | |
2731 # ifdef USR_GVIMRC_FILE3 | |
2732 version_msg(_("3rd user gvimrc file: \"")); | |
2733 version_msg(USR_GVIMRC_FILE3); | |
2734 version_msg("\"\n"); | |
2735 # endif | |
2736 #endif | |
2737 #ifdef FEAT_GUI | |
2738 # ifdef SYS_MENU_FILE | |
2739 version_msg(_(" system menu file: \"")); | |
2740 version_msg(SYS_MENU_FILE); | |
2741 version_msg("\"\n"); | |
2742 # endif | |
2743 #endif | |
2744 #ifdef HAVE_PATHDEF | |
2745 if (*default_vim_dir != NUL) | |
2746 { | |
2747 version_msg(_(" fall-back for $VIM: \"")); | |
2748 version_msg((char *)default_vim_dir); | |
2749 version_msg("\"\n"); | |
2750 } | |
2751 if (*default_vimruntime_dir != NUL) | |
2752 { | |
2753 version_msg(_(" f-b for $VIMRUNTIME: \"")); | |
2754 version_msg((char *)default_vimruntime_dir); | |
2755 version_msg("\"\n"); | |
2756 } | |
2757 version_msg(_("Compilation: ")); | |
2758 version_msg((char *)all_cflags); | |
2759 version_msg("\n"); | |
2760 #ifdef VMS | |
2761 if (*compiler_version != NUL) | |
2762 { | |
2763 version_msg(_("Compiler: ")); | |
2764 version_msg((char *)compiler_version); | |
2765 version_msg("\n"); | |
2766 } | |
2767 #endif | |
2768 version_msg(_("Linking: ")); | |
2769 version_msg((char *)all_lflags); | |
2770 #endif | |
2771 #ifdef DEBUG | |
2772 version_msg("\n"); | |
2773 version_msg(_(" DEBUG BUILD")); | |
2774 #endif | |
2775 } | |
2776 | |
2777 /* | |
2778 * Output a string for the version message. If it's going to wrap, output a | |
2779 * newline, unless the message is too long to fit on the screen anyway. | |
2780 */ | |
2781 static void | |
2782 version_msg(s) | |
2783 char *s; | |
2784 { | |
2785 int len = (int)STRLEN(s); | |
2786 | |
2787 if (!got_int && len < (int)Columns && msg_col + len >= (int)Columns | |
2788 && *s != '\n') | |
2789 msg_putchar('\n'); | |
2790 if (!got_int) | |
2791 MSG_PUTS(s); | |
2792 } | |
2793 | |
2794 static void do_intro_line __ARGS((int row, char_u *mesg, int add_version, int attr)); | |
2795 | |
2796 /* | |
5126
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2797 * Show the intro message when not editing a file. |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2798 */ |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2799 void |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2800 maybe_intro_message() |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2801 { |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2802 if (bufempty() |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2803 && curbuf->b_fname == NULL |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2804 #ifdef FEAT_WINDOWS |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2805 && firstwin->w_next == NULL |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2806 #endif |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2807 && vim_strchr(p_shm, SHM_INTRO) == NULL) |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2808 intro_message(FALSE); |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2809 } |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2810 |
71859e71b1f9
updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents:
5124
diff
changeset
|
2811 /* |
7 | 2812 * Give an introductory message about Vim. |
2813 * Only used when starting Vim on an empty file, without a file name. | |
2814 * Or with the ":intro" command (for Sven :-). | |
2815 */ | |
2816 void | |
2817 intro_message(colon) | |
2818 int colon; /* TRUE for ":intro" */ | |
2819 { | |
2820 int i; | |
2821 int row; | |
2822 int blanklines; | |
2823 int sponsor; | |
2824 char *p; | |
2825 static char *(lines[]) = | |
2826 { | |
2827 N_("VIM - Vi IMproved"), | |
2828 "", | |
2829 N_("version "), | |
2830 N_("by Bram Moolenaar et al."), | |
2831 #ifdef MODIFIED_BY | |
2832 " ", | |
2833 #endif | |
2834 N_("Vim is open source and freely distributable"), | |
2835 "", | |
2836 N_("Help poor children in Uganda!"), | |
2837 N_("type :help iccf<Enter> for information "), | |
2838 "", | |
2839 N_("type :q<Enter> to exit "), | |
2840 N_("type :help<Enter> or <F1> for on-line help"), | |
26 | 2841 N_("type :help version7<Enter> for version info"), |
7 | 2842 NULL, |
2843 "", | |
2844 N_("Running in Vi compatible mode"), | |
2845 N_("type :set nocp<Enter> for Vim defaults"), | |
2846 N_("type :help cp-default<Enter> for info on this"), | |
2847 }; | |
2848 #ifdef FEAT_GUI | |
2849 static char *(gui_lines[]) = | |
2850 { | |
2851 NULL, | |
2852 NULL, | |
2853 NULL, | |
2854 NULL, | |
2855 #ifdef MODIFIED_BY | |
2856 NULL, | |
2857 #endif | |
2858 NULL, | |
2859 NULL, | |
2860 NULL, | |
2861 N_("menu Help->Orphans for information "), | |
2862 NULL, | |
2863 N_("Running modeless, typed text is inserted"), | |
2864 N_("menu Edit->Global Settings->Toggle Insert Mode "), | |
2865 N_(" for two modes "), | |
2866 NULL, | |
2867 NULL, | |
2868 NULL, | |
2869 N_("menu Edit->Global Settings->Toggle Vi Compatible"), | |
2870 N_(" for Vim defaults "), | |
2871 }; | |
2872 #endif | |
2873 | |
2874 /* blanklines = screen height - # message lines */ | |
2875 blanklines = (int)Rows - ((sizeof(lines) / sizeof(char *)) - 1); | |
2876 if (!p_cp) | |
2877 blanklines += 4; /* add 4 for not showing "Vi compatible" message */ | |
2878 #if defined(WIN3264) && !defined(FEAT_GUI_W32) | |
2879 if (mch_windows95()) | |
2880 blanklines -= 3; /* subtract 3 for showing "Windows 95" message */ | |
2881 #endif | |
2882 | |
2883 #ifdef FEAT_WINDOWS | |
2884 /* Don't overwrite a statusline. Depends on 'cmdheight'. */ | |
2885 if (p_ls > 1) | |
2886 blanklines -= Rows - topframe->fr_height; | |
2887 #endif | |
2888 if (blanklines < 0) | |
2889 blanklines = 0; | |
2890 | |
2891 /* Show the sponsor and register message one out of four times, the Uganda | |
2892 * message two out of four times. */ | |
615 | 2893 sponsor = (int)time(NULL); |
7 | 2894 sponsor = ((sponsor & 2) == 0) - ((sponsor & 4) == 0); |
2895 | |
2896 /* start displaying the message lines after half of the blank lines */ | |
2897 row = blanklines / 2; | |
2898 if ((row >= 2 && Columns >= 50) || colon) | |
2899 { | |
2900 for (i = 0; i < (int)(sizeof(lines) / sizeof(char *)); ++i) | |
2901 { | |
2902 p = lines[i]; | |
2903 #ifdef FEAT_GUI | |
2904 if (p_im && gui.in_use && gui_lines[i] != NULL) | |
2905 p = gui_lines[i]; | |
2906 #endif | |
2907 if (p == NULL) | |
2908 { | |
2909 if (!p_cp) | |
2910 break; | |
2911 continue; | |
2912 } | |
2913 if (sponsor != 0) | |
2914 { | |
2915 if (strstr(p, "children") != NULL) | |
2916 p = sponsor < 0 | |
2917 ? N_("Sponsor Vim development!") | |
2918 : N_("Become a registered Vim user!"); | |
2919 else if (strstr(p, "iccf") != NULL) | |
2920 p = sponsor < 0 | |
2921 ? N_("type :help sponsor<Enter> for information ") | |
2922 : N_("type :help register<Enter> for information "); | |
2923 else if (strstr(p, "Orphans") != NULL) | |
2924 p = N_("menu Help->Sponsor/Register for information "); | |
2925 } | |
2926 if (*p != NUL) | |
2927 do_intro_line(row, (char_u *)_(p), i == 2, 0); | |
2928 ++row; | |
2929 } | |
2930 #if defined(WIN3264) && !defined(FEAT_GUI_W32) | |
2931 if (mch_windows95()) | |
2932 { | |
2933 do_intro_line(++row, | |
2934 (char_u *)_("WARNING: Windows 95/98/ME detected"), | |
2935 FALSE, hl_attr(HLF_E)); | |
2936 do_intro_line(++row, | |
2937 (char_u *)_("type :help windows95<Enter> for info on this"), | |
2938 FALSE, 0); | |
2939 } | |
2940 #endif | |
2941 } | |
2942 | |
2943 /* Make the wait-return message appear just below the text. */ | |
2944 if (colon) | |
2945 msg_row = row; | |
2946 } | |
2947 | |
2948 static void | |
2949 do_intro_line(row, mesg, add_version, attr) | |
2950 int row; | |
2951 char_u *mesg; | |
2952 int add_version; | |
2953 int attr; | |
2954 { | |
2955 char_u vers[20]; | |
2956 int col; | |
2957 char_u *p; | |
2958 int l; | |
2959 int clen; | |
2960 #ifdef MODIFIED_BY | |
2961 # define MODBY_LEN 150 | |
2962 char_u modby[MODBY_LEN]; | |
2963 | |
2964 if (*mesg == ' ') | |
2965 { | |
1491 | 2966 vim_strncpy(modby, (char_u *)_("Modified by "), MODBY_LEN - 1); |
7 | 2967 l = STRLEN(modby); |
1491 | 2968 vim_strncpy(modby + l, (char_u *)MODIFIED_BY, MODBY_LEN - l - 1); |
7 | 2969 mesg = modby; |
2970 } | |
2971 #endif | |
2972 | |
2973 /* Center the message horizontally. */ | |
2974 col = vim_strsize(mesg); | |
2975 if (add_version) | |
2976 { | |
2977 STRCPY(vers, mediumVersion); | |
2978 if (highest_patch()) | |
2979 { | |
2980 /* Check for 9.9x or 9.9xx, alpha/beta version */ | |
2619 | 2981 if (isalpha((int)vers[3])) |
7 | 2982 { |
3396 | 2983 int len = (isalpha((int)vers[4])) ? 5 : 4; |
2984 sprintf((char *)vers + len, ".%d%s", highest_patch(), | |
2985 mediumVersion + len); | |
7 | 2986 } |
2987 else | |
2988 sprintf((char *)vers + 3, ".%d", highest_patch()); | |
2989 } | |
2990 col += (int)STRLEN(vers); | |
2991 } | |
2992 col = (Columns - col) / 2; | |
2993 if (col < 0) | |
2994 col = 0; | |
2995 | |
2996 /* Split up in parts to highlight <> items differently. */ | |
2997 for (p = mesg; *p != NUL; p += l) | |
2998 { | |
2999 clen = 0; | |
3000 for (l = 0; p[l] != NUL | |
3001 && (l == 0 || (p[l] != '<' && p[l - 1] != '>')); ++l) | |
3002 { | |
3003 #ifdef FEAT_MBYTE | |
3004 if (has_mbyte) | |
3005 { | |
3006 clen += ptr2cells(p + l); | |
474 | 3007 l += (*mb_ptr2len)(p + l) - 1; |
7 | 3008 } |
3009 else | |
3010 #endif | |
3011 clen += byte2cells(p[l]); | |
3012 } | |
3013 screen_puts_len(p, l, row, col, *p == '<' ? hl_attr(HLF_8) : attr); | |
3014 col += clen; | |
3015 } | |
3016 | |
3017 /* Add the version number to the version line. */ | |
3018 if (add_version) | |
3019 screen_puts(vers, row, col, 0); | |
3020 } | |
3021 | |
3022 /* | |
3023 * ":intro": clear screen, display intro screen and wait for return. | |
3024 */ | |
3025 void | |
3026 ex_intro(eap) | |
1876 | 3027 exarg_T *eap UNUSED; |
7 | 3028 { |
3029 screenclear(); | |
3030 intro_message(TRUE); | |
3031 wait_return(TRUE); | |
3032 } |