Browse code

bugfix: was not showing prototypes hints if the cursor was in the space after the last character of the line

Dario Rodriguez authored on 25/04/2021 10:31:35
Showing 1 changed files
... ...
@@ -197,7 +197,7 @@ redata_prototypes_get(redata_t *redata, long pos)
197 197
                         chunk=redata->chunks[numchunk];
198 198
                         for(;offset>=0;offset--) {
199 199
                                 c=chunk->data[offset];
200
-                                if(c=='\n') {
200
+                                if(c=='\n' && !(numchunk==savednumchunk && offset==savedoffset)) {
201 201
                                         status=searching_ended;
202 202
                                         break;
203 203
                                 }