mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
Remove NUL macro
This commit is contained in:

committed by
Thiago de Arruda

parent
046debb935
commit
2e4613aecc
2
src/ui.c
2
src/ui.c
@@ -1075,7 +1075,7 @@ int vcol2col(win_T *wp, linenr_T lnum, int vcol)
|
||||
char_u *start;
|
||||
|
||||
start = ptr = ml_get_buf(wp->w_buffer, lnum, FALSE);
|
||||
while (count < vcol && *ptr != NUL) {
|
||||
while (count < vcol && *ptr != '\0') {
|
||||
count += win_lbr_chartabsize(wp, ptr, count, NULL);
|
||||
mb_ptr_adv(ptr);
|
||||
}
|
||||
|
Reference in New Issue
Block a user