diff options
| author | bfredl <bjorn.linse@gmail.com> | 2022-09-06 20:38:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-06 20:38:26 +0200 |
| commit | 74a8b5982a27cdccc6505343a9feeba1b3e74e31 (patch) | |
| tree | 5e85d41e4115977863908fbcded226169b02ebd8 /src/nvim/mouse.c | |
| parent | 707edfc9e6a1745f268d1a9184183da521dc86b8 (diff) | |
| parent | 73207cae611a1efb8cd17139e8228772daeb9866 (diff) | |
| download | rneovim-74a8b5982a27cdccc6505343a9feeba1b3e74e31.tar.gz rneovim-74a8b5982a27cdccc6505343a9feeba1b3e74e31.tar.bz2 rneovim-74a8b5982a27cdccc6505343a9feeba1b3e74e31.zip | |
Merge pull request #20031 from dundargoc/refactor/char_u/8
refactor: replace char_u with char 8: remove `vim_strsave`
Diffstat (limited to 'src/nvim/mouse.c')
| -rw-r--r-- | src/nvim/mouse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/mouse.c b/src/nvim/mouse.c index 90084bde17..7b267d6ce4 100644 --- a/src/nvim/mouse.c +++ b/src/nvim/mouse.c @@ -631,7 +631,7 @@ colnr_T vcol2col(win_T *const wp, const linenr_T lnum, const colnr_T vcol) FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT { // try to advance to the specified column - char_u *line = ml_get_buf(wp->w_buffer, lnum, false); + char_u *line = (char_u *)ml_get_buf(wp->w_buffer, lnum, false); chartabsize_T cts; init_chartabsize_arg(&cts, wp, lnum, 0, (char *)line, (char *)line); while (cts.cts_vcol < vcol && *cts.cts_ptr != NUL) { |