diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-09-02 17:06:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-02 17:06:00 +0200 |
commit | 69456f3414f112853eea1b3214a929d99da556d9 (patch) | |
tree | efd13e7450c658984ed0a71f3cd62f2c67264131 /src/nvim/window.c | |
parent | 2afcdbd63a5b0cbeaad9d83b096a3af5201c67a9 (diff) | |
parent | 49e893f296bca9eef5ff45a3d746c261d055bf10 (diff) | |
download | rneovim-69456f3414f112853eea1b3214a929d99da556d9.tar.gz rneovim-69456f3414f112853eea1b3214a929d99da556d9.tar.bz2 rneovim-69456f3414f112853eea1b3214a929d99da556d9.zip |
Merge pull request #20026 from dundargoc/refactor/char_u/7
refactor: replace char_u with char 7: remove `vim_strnsave`
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r-- | src/nvim/window.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c index c0b73ff837..6ee3820d95 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -6524,7 +6524,7 @@ char_u *grab_file_name(long count, linenr_T *file_lnum) *file_lnum = (linenr_T)getdigits_long(&p, false, 0); } - return find_file_name_in_path((char_u *)ptr, len, options, count, (char_u *)curbuf->b_ffname); + return (char_u *)find_file_name_in_path(ptr, len, options, count, curbuf->b_ffname); } return file_name_at_cursor(options | FNAME_HYP, count, file_lnum); } @@ -6544,7 +6544,7 @@ char_u *grab_file_name(long count, linenr_T *file_lnum) */ char_u *file_name_at_cursor(int options, long count, linenr_T *file_lnum) { - return file_name_in_line(get_cursor_line_ptr(), + return file_name_in_line((char_u *)get_cursor_line_ptr(), curwin->w_cursor.col, options, count, (char_u *)curbuf->b_ffname, file_lnum); } @@ -6651,7 +6651,7 @@ char_u *file_name_in_line(char_u *line, int col, int options, long count, char_u } } - return find_file_name_in_path((char_u *)ptr, len, options, count, rel_fname); + return (char_u *)find_file_name_in_path(ptr, len, options, count, (char *)rel_fname); } /// Add or remove a status line from window(s), according to the |