aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2018-08-25 13:23:54 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2018-12-31 12:44:22 +0100
commit1a896bc93f9c54cc8b973feba1963fd6b60a22b7 (patch)
tree96fa5f32684b415e9cd03491b9b415480de54622 /src/nvim/edit.c
parent4f1dcf7c28c941cfe3c8516728b6543ad2854645 (diff)
downloadrneovim-1a896bc93f9c54cc8b973feba1963fd6b60a22b7.tar.gz
rneovim-1a896bc93f9c54cc8b973feba1963fd6b60a22b7.tar.bz2
rneovim-1a896bc93f9c54cc8b973feba1963fd6b60a22b7.zip
multigrid: avoid allocation when not ext_multigrid.
Move grid specific functions from mbyte.c to screen.c
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index 3558bdea06..768d37bd01 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -1508,7 +1508,7 @@ void edit_putchar(int c, int highlight)
if (curwin->w_p_rl) {
pc_col += curwin->w_grid.Columns - 1 - curwin->w_wcol;
if (has_mbyte) {
- int fix_col = mb_fix_col(&curwin->w_grid, pc_col, pc_row);
+ int fix_col = grid_fix_col(&curwin->w_grid, pc_col, pc_row);
if (fix_col != pc_col) {
grid_putchar(&curwin->w_grid, ' ', pc_row, fix_col, attr);
@@ -1518,7 +1518,7 @@ void edit_putchar(int c, int highlight)
}
} else {
pc_col += curwin->w_wcol;
- if (mb_lefthalve(&curwin->w_grid, pc_row, pc_col))
+ if (grid_lefthalve(&curwin->w_grid, pc_row, pc_col))
pc_status = PC_STATUS_LEFT;
}