• R/O
  • SSH

vim: Commit

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

Revision3ffdc64af1e53617586ad0cf14e039cb6f1cad34 (tree)
Time2005-07-31 07:45:36
Authorvimboss
Commitervimboss

Log Message

updated for version 7.0120

Change Summary

Incremental Difference

diff -r 01af1008a8d8 -r 3ffdc64af1e5 runtime/doc/todo.txt
--- a/runtime/doc/todo.txt Sat Jul 30 22:43:24 2005 +0000
+++ b/runtime/doc/todo.txt Sat Jul 30 22:45:36 2005 +0000
@@ -1,4 +1,4 @@
1-*todo.txt* For Vim version 7.0aa. Last change: 2005 Jul 29
1+*todo.txt* For Vim version 7.0aa. Last change: 2005 Jul 30
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -53,7 +53,6 @@
5353 the screen.
5454 - mblen(NULL, 0) also in Vim 6.3?
5555
56-Implement printf("blah %d: %s", nr, str)? Use vim_snprintf code.
5756
5857 PLANNED FOR VERSION 7.0:
5958
@@ -69,9 +68,10 @@
6968 First cleanup the Insert-mode completion.
7069
7170 UI:
72- - Use 'wildmenu' kind of thing.
73- - Put the list of choices right under the place where they would be
74- inserted.
71+ - At first: use 'wildmenu' kind of thing.
72+ - Nicer: Display the list of choices right under the place where they
73+ would be inserted in a kind of meny (use scrollbar when there are many
74+ alternatives).
7575
7676 Completion logic:
7777 Use 'coupler' option to list items that connect words. For C: ".,->".
@@ -1628,7 +1628,6 @@
16281628 mapname({idx}, mode) return the name of the idx'th mapping.
16291629 Patch by Ilya Sher, 2004 Mar 4.
16301630 Return a list instead.
1631- printf(format, arg, ..) How to prevent a crash???
16321631 char2hex() convert char string to hex string.
16331632 attributes() return file protection flags "drwxrwxrwx"
16341633 filecopy(from, to) Copy a file
diff -r 01af1008a8d8 -r 3ffdc64af1e5 src/eval.c
--- a/src/eval.c Sat Jul 30 22:43:24 2005 +0000
+++ b/src/eval.c Sat Jul 30 22:45:36 2005 +0000
@@ -1405,7 +1405,8 @@
14051405 }
14061406
14071407 /*
1408- * Call some vimL function and return the result as a string
1408+ * Call vimL function "func" and return the result as a string.
1409+ * Returns NULL when calling the function fails.
14091410 * Uses argv[argc] for the function arguments.
14101411 */
14111412 void *
@@ -1416,20 +1417,43 @@
14161417 int safe; /* use the sandbox */
14171418 {
14181419 typval_T rettv;
1419- char_u *retval = NULL;
1420+ char_u *retval;
14201421
14211422 if (call_vim_function(func, argc, argv, safe, &rettv) == FAIL)
14221423 return NULL;
14231424
14241425 retval = vim_strsave(get_tv_string(&rettv));
1425-
14261426 clear_tv(&rettv);
1427-
14281427 return retval;
14291428 }
14301429
1431-/*
1432- * Call some vimL function and return the result as a list
1430+#if defined(FEAT_COMPL_FUNC) || defined(PROTO)
1431+/*
1432+ * Call vimL function "func" and return the result as a number.
1433+ * Returns -1 when calling the function fails.
1434+ * Uses argv[argc] for the function arguments.
1435+ */
1436+ long
1437+call_func_retnr(func, argc, argv, safe)
1438+ char_u *func;
1439+ int argc;
1440+ char_u **argv;
1441+ int safe; /* use the sandbox */
1442+{
1443+ typval_T rettv;
1444+ long retval;
1445+
1446+ if (call_vim_function(func, argc, argv, safe, &rettv) == FAIL)
1447+ return -1;
1448+
1449+ retval = get_tv_number_chk(&rettv, NULL);
1450+ clear_tv(&rettv);
1451+ return retval;
1452+}
1453+#endif
1454+
1455+/*
1456+ * Call vimL function "func" and return the result as a list
14331457 * Uses argv[argc] for the function arguments.
14341458 */
14351459 void *
Show on old repository browser