comparison src/evalfunc.c @ 31164:7831da568864 v9.0.0916

patch 9.0.0916: getbufline() is inefficient for getting a single line Commit: https://github.com/vim/vim/commit/ce30ccc06af7f2c03762e5b18dde37b26ea6ec42 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Nov 21 19:57:04 2022 +0000 patch 9.0.0916: getbufline() is inefficient for getting a single line Problem: getbufline() is inefficient for getting a single line. Solution: Add getbufoneline().
author Bram Moolenaar <Bram@vim.org>
date Mon, 21 Nov 2022 21:00:06 +0100
parents 004aee2845d2
children 83b25278bac3
comparison
equal deleted inserted replaced
31163:82787a78ff90 31164:7831da568864
1921 ret_any, f_get}, 1921 ret_any, f_get},
1922 {"getbufinfo", 0, 1, FEARG_1, arg1_buffer_or_dict_any, 1922 {"getbufinfo", 0, 1, FEARG_1, arg1_buffer_or_dict_any,
1923 ret_list_dict_any, f_getbufinfo}, 1923 ret_list_dict_any, f_getbufinfo},
1924 {"getbufline", 2, 3, FEARG_1, arg3_buffer_lnum_lnum, 1924 {"getbufline", 2, 3, FEARG_1, arg3_buffer_lnum_lnum,
1925 ret_list_string, f_getbufline}, 1925 ret_list_string, f_getbufline},
1926 {"getbufoneline", 2, 2, FEARG_1, arg2_buffer_lnum,
1927 ret_string, f_getbufoneline},
1926 {"getbufvar", 2, 3, FEARG_1, arg3_buffer_string_any, 1928 {"getbufvar", 2, 3, FEARG_1, arg3_buffer_string_any,
1927 ret_any, f_getbufvar}, 1929 ret_any, f_getbufvar},
1928 {"getchangelist", 0, 1, FEARG_1, arg1_buffer, 1930 {"getchangelist", 0, 1, FEARG_1, arg1_buffer,
1929 ret_list_any, f_getchangelist}, 1931 ret_list_any, f_getchangelist},
1930 {"getchar", 0, 1, 0, arg1_bool, 1932 {"getchar", 0, 1, 0, arg1_bool,