Browse code

bugfix: copying a block to the end of the line was inserting an additional space

Dario Rodriguez authored on 10/01/2022 14:56:25
Showing 1 changed files
... ...
@@ -2138,6 +2138,7 @@ redata_linecol2pos(redata_t *redata, int line, int colrequest, long *pos, int *c
2138 2138
                 done=0;
2139 2139
                 for(i=0;i<len && n<colrequest;i++,curpos++) {
2140 2140
                         if(ptr[i]=='\n') {
2141
+                                n++;
2141 2142
                                 done=1;
2142 2143
                                 break;
2143 2144
                         } else if(UTF8_IS_ASCII_OR_START(ptr[i])) {