aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/cursor.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-09-12 21:50:31 +0200
committerGitHub <noreply@github.com>2022-09-12 21:50:31 +0200
commitf6232e160b96e2607edcd5afa7207a1e4aadf805 (patch)
tree41fa053ec7eff6b7edd278ec892392896f984722 /src/nvim/cursor.c
parentfd70e2bff2440181f63fe124738cf2a025d1e6a5 (diff)
parent3ff46544c9872b4161fd098569c30b55fe3abd36 (diff)
downloadrneovim-f6232e160b96e2607edcd5afa7207a1e4aadf805.tar.gz
rneovim-f6232e160b96e2607edcd5afa7207a1e4aadf805.tar.bz2
rneovim-f6232e160b96e2607edcd5afa7207a1e4aadf805.zip
Merge pull request #20077 from dundargoc/refactor/char_u/11
refactor: replace char_u with char 11: remove `STRLEN` part 1
Diffstat (limited to 'src/nvim/cursor.c')
-rw-r--r--src/nvim/cursor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/cursor.c b/src/nvim/cursor.c
index cd651fcf4c..6c0475822b 100644
--- a/src/nvim/cursor.c
+++ b/src/nvim/cursor.c
@@ -67,7 +67,7 @@ int coladvance_force(colnr_T wcol)
/// Try to advance the Cursor to the specified screen column.
/// If virtual editing: fine tune the cursor position.
/// Note that all virtual positions off the end of a line should share
-/// a curwin->w_cursor.col value (n.b. this is equal to STRLEN(line)),
+/// a curwin->w_cursor.col value (n.b. this is equal to strlen(line)),
/// beginning at coladd 0.
///
/// @return OK if desired column is reached, FAIL if not
@@ -346,7 +346,7 @@ void check_cursor_col_win(win_T *win)
colnr_T oldcoladd = win->w_cursor.col + win->w_cursor.coladd;
unsigned int cur_ve_flags = get_ve_flags();
- colnr_T len = (colnr_T)STRLEN(ml_get_buf(win->w_buffer, win->w_cursor.lnum, false));
+ colnr_T len = (colnr_T)strlen(ml_get_buf(win->w_buffer, win->w_cursor.lnum, false));
if (len == 0) {
win->w_cursor.col = 0;
} else if (win->w_cursor.col >= len) {
@@ -412,7 +412,7 @@ void check_visual_pos(void)
VIsual.col = 0;
VIsual.coladd = 0;
} else {
- int len = (int)STRLEN(ml_get(VIsual.lnum));
+ int len = (int)strlen(ml_get(VIsual.lnum));
if (VIsual.col > len) {
VIsual.col = len;