diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-08-28 23:43:04 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-08-28 23:43:04 +0200 |
commit | 461d46d8ace1b6950bf2733de9cb2b290453d86d (patch) | |
tree | a592acf9f95e8c60cc396f48ac4bf73656c0846c /src/nvim/mbyte.c | |
parent | 885ca3b7a60b79feb1d4c9e54265c8b543d4f245 (diff) | |
parent | a2403a0ed9afdfaea7abb5555dbdf555b56eff9a (diff) | |
download | rneovim-461d46d8ace1b6950bf2733de9cb2b290453d86d.tar.gz rneovim-461d46d8ace1b6950bf2733de9cb2b290453d86d.tar.bz2 rneovim-461d46d8ace1b6950bf2733de9cb2b290453d86d.zip |
Merge #8863 'refactor: Remove mb_head_off()'
Diffstat (limited to 'src/nvim/mbyte.c')
-rw-r--r-- | src/nvim/mbyte.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c index 94bf7fb985..11c1897153 100644 --- a/src/nvim/mbyte.c +++ b/src/nvim/mbyte.c @@ -1710,7 +1710,7 @@ void mb_check_adjust_col(void *win_) win->w_cursor.col = len - 1; } // Move the cursor to the head byte. - win->w_cursor.col -= (*mb_head_off)(p, p + win->w_cursor.col); + win->w_cursor.col -= utf_head_off(p, p + win->w_cursor.col); } // Reset `coladd` when the cursor would be on the right half of a |