fixes a potential display problem when a search moves the
cursor offscreen and onto a different page. (DLR, found by
Mike Frysinger)
+ display_string()
+ - Fix minor memory leak. (DLR)
- doc/nano.1:
- Better display the default values for quotestr. (DLR)
- doc/nanorc.5:
* counting the blank lines at their ends. */
#define MAX_SEARCH_HISTORY 100
-/* The maximum number of bytes we read from a file at one time. */
+/* The maximum number of bytes we read into a buffer at one time. */
#define MAX_BUF_SIZE 128
#endif /* !NANO_H */
/* The string we return. */
size_t index;
/* Current position in converted. */
-
- char *buf_mb = charalloc(mb_cur_max());
+ char *buf_mb;
int buf_mb_len;
/* If dollars is TRUE, make room for the "$" at the end of the
if (len == 0)
return mallocstrcpy(NULL, "");
+ buf_mb = charalloc(mb_cur_max());
+
start_index = actual_x(buf, start_col);
column = strnlenpt(buf, start_index);