diff options
Diffstat (limited to 'src/c_utils.c')
-rw-r--r-- | src/c_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c_utils.c b/src/c_utils.c index 16ed4f0..de71ef3 100644 --- a/src/c_utils.c +++ b/src/c_utils.c @@ -157,7 +157,7 @@ int16_t } nlines = c_get_line_num(line, tcaps->cpos, ft_strlen(msh->ps[0]), tcaps); ret = ft_printf("%s", line); - i = 0; + i = (nlines == (tcaps->lpos)) ? 0 : tcaps->ws.ws_col * (tcaps->lpos - 1); if (tcaps->cpos != len) { if (nlines != tcaps->lpos) |