diff src/evalfunc.c @ 31760:f348559ce426 v9.0.1212

patch 9.0.1212: cannot read back what setcellwidths() has done Commit: https://github.com/vim/vim/commit/66bb9ae70f7371456ed76518076d2a344f8ab417 Author: Kota Kato <github@kat0h.com> Date: Tue Jan 17 18:31:56 2023 +0000 patch 9.0.1212: cannot read back what setcellwidths() has done Problem: Cannot read back what setcellwidths() has done. Solution: Add getcellwidths(). (Kota Kato, closes https://github.com/vim/vim/issues/11837)
author Bram Moolenaar <Bram@vim.org>
date Tue, 17 Jan 2023 19:45:05 +0100
parents f578bef02249
children 152bb9e6b4b4
line wrap: on
line diff
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -1953,6 +1953,8 @@ static funcentry_T global_functions[] =
 			ret_string,	    f_getbufoneline},
     {"getbufvar",	2, 3, FEARG_1,	    arg3_buffer_string_any,
 			ret_any,	    f_getbufvar},
+    {"getcellwidths",	0, 0, 0,	    NULL,
+			ret_list_any,	    f_getcellwidths},
     {"getchangelist",	0, 1, FEARG_1,	    arg1_buffer,
 			ret_list_any,	    f_getchangelist},
     {"getchar",		0, 1, 0,	    arg1_bool,