mirror of
https://github.com/neovim/neovim.git
synced 2026-04-04 22:59:36 +00:00
refactor: move statusline code from buffer.c and [draw]screen.c to new file
problem: code for drawing statusline is arbitrarily spreadout between drawscreen.c, screen.c and buffer.c solution: move it to a new file statusline.c - rename archaic internal name "status match" to public name "wildmenu" - showruler() does not show the ruler. it show anything which displays info about the cursor. Rename it accordingy.
This commit is contained in:
@@ -9,6 +9,7 @@ local NULL = helpers.NULL
|
||||
|
||||
local globals = helpers.cimport("./src/nvim/globals.h")
|
||||
local buffer = helpers.cimport("./src/nvim/buffer.h")
|
||||
local stl = helpers.cimport("./src/nvim/statusline.h")
|
||||
|
||||
describe('buffer functions', function()
|
||||
|
||||
@@ -228,7 +229,7 @@ describe('buffer functions', function()
|
||||
local fillchar = arg.fillchar or (' '):byte()
|
||||
local maximum_cell_count = arg.maximum_cell_count or buffer_byte_size
|
||||
|
||||
return buffer.build_stl_str_hl(globals.curwin,
|
||||
return stl.build_stl_str_hl(globals.curwin,
|
||||
output_buffer,
|
||||
buffer_byte_size,
|
||||
to_cstr(pat),
|
||||
|
||||
Reference in New Issue
Block a user