nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 4e637cd1c772f0e3a9c039ea43ac9f51f54d0fcf
parent add1159675182355d7c73af14ff8fb1bcf051435
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue, 28 May 2019 17:41:28 +0200

tweaks: delete a now-unused function

Diffstat:
Msrc/proto.h | 1-
Msrc/utils.c | 11-----------
2 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/src/proto.h b/src/proto.h @@ -571,7 +571,6 @@ bool is_separate_word(size_t position, size_t length, const char *buf); #endif const char *strstrwrapper(const char *haystack, const char *needle, const char *start); -void nperror(const char *s); void *nmalloc(size_t howmuch); void *nrealloc(void *ptr, size_t howmuch); char *mallocstrncpy(char *dest, const char *src, size_t n); diff --git a/src/utils.c b/src/utils.c @@ -287,17 +287,6 @@ const char *strstrwrapper(const char *haystack, const char *needle, return mbstrcasestr(start, needle); } -/* This is a wrapper for the perror() function. The wrapper temporarily - * leaves curses mode, calls perror() (which writes to stderr), and then - * reenters curses mode, updating the screen in the process. Note that - * nperror() causes the window to flicker once. */ -void nperror(const char *s) -{ - endwin(); - perror(s); - doupdate(); -} - /* This is a wrapper for the malloc() function that properly handles * things when we run out of memory. */ void *nmalloc(size_t howmuch)