tren: fix ren_pos() comment - neatvi - [fork] simple vi-type editor with UTF-8 … | |
git clone git://src.adamsgaard.dk/neatvi | |
Log | |
Files | |
Refs | |
README | |
--- | |
commit 9ee0c8c148fefbb2599974b36883484270d54a5c | |
parent ed2e096607df03ce155e4c6ab786f8b697799988 | |
Author: Ali Gholami Rudi <[email protected]> | |
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(-) | |
--- | |
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); |