comparison src/evalfunc.c @ 29024:9f25e0ed831d v8.2.5034

patch 8.2.5034: there is no way to get the byte index from a virtual column Commit: https://github.com/vim/vim/commit/5a6ec10cc80ab02eeff644ab19b82312630ea855 Author: Bram Moolenaar <Bram@vim.org> Date: Fri May 27 21:58:00 2022 +0100 patch 8.2.5034: there is no way to get the byte index from a virtual column Problem: There is no way to get the byte index from a virtual column. Solution: Add virtcol2col(). (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/10477, closes #10098)
author Bram Moolenaar <Bram@vim.org>
date Fri, 27 May 2022 23:00:03 +0200
parents 644b0f0541de
children b90bca860b5a
comparison
equal deleted inserted replaced
29023:b7960e26a397 29024:9f25e0ed831d
2680 ret_first_arg, f_uniq}, 2680 ret_first_arg, f_uniq},
2681 {"values", 1, 1, FEARG_1, arg1_dict_any, 2681 {"values", 1, 1, FEARG_1, arg1_dict_any,
2682 ret_list_any, f_values}, 2682 ret_list_any, f_values},
2683 {"virtcol", 1, 2, FEARG_1, arg2_string_or_list_bool, 2683 {"virtcol", 1, 2, FEARG_1, arg2_string_or_list_bool,
2684 ret_virtcol, f_virtcol}, 2684 ret_virtcol, f_virtcol},
2685 {"virtcol2col", 3, 3, FEARG_1, arg3_number,
2686 ret_number, f_virtcol2col},
2685 {"visualmode", 0, 1, 0, arg1_bool, 2687 {"visualmode", 0, 1, 0, arg1_bool,
2686 ret_string, f_visualmode}, 2688 ret_string, f_visualmode},
2687 {"wildmenumode", 0, 0, 0, NULL, 2689 {"wildmenumode", 0, 0, 0, NULL,
2688 ret_number, f_wildmenumode}, 2690 ret_number, f_wildmenumode},
2689 {"win_execute", 2, 3, FEARG_2, arg23_win_execute, 2691 {"win_execute", 2, 3, FEARG_2, arg23_win_execute,