tren: fix ren_pos() comment - neatvi - [fork] simple vi-type editor with UTF-8 support
(HTM) git clone git://src.adamsgaard.dk/neatvi
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 9ee0c8c148fefbb2599974b36883484270d54a5c
(DIR) parent ed2e096607df03ce155e4c6ab786f8b697799988
(HTM) Author: Ali Gholami Rudi <ali@rudi.ir>
Date: Fri, 12 May 2017 14:01:49 +0430
ren: fix ren_pos() comment
Diffstat:
M ren.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/ren.c b/ren.c
t@@ -59,7 +59,7 @@ static int pos_prev(int *pos, int n, int p, int cur)
return ret >= 0 ? pos[ret] : -1;
}
-/* convert visual position to character offset */
+/* convert character offset to visual position */
int ren_pos(char *s, int off)
{
int n = uc_slen(s);