refactor: move virtcol functions to plines.c

Problem: Functions for virtcol and chartabsize are similar (both compute
horizontal size), but appear in two different source files.
Solution: Move virtcol functions to plines.c.
This commit is contained in:
zeertzjq
2023-08-25 19:36:43 +08:00
parent f08648182b
commit 93af6d9ed0
7 changed files with 302 additions and 303 deletions

View File

@@ -2,9 +2,11 @@
#define NVIM_PLINES_H
#include <stdbool.h>
#include <stdint.h>
#include "nvim/buffer_defs.h"
#include "nvim/vim.h"
#include "nvim/marktree.h"
#include "nvim/pos.h"
/// Argument for lbr_chartabsize().
typedef struct {