nano

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

commit 74fcc3be791db11c9a7248e5c4082d7df4fd56dc
parent b6909d37379273599e9b23b654b1d8c9f62ae317
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 24 Mar 2021 12:27:22 +0100

tweaks: normalize the indentation after an earlier change

(Should have been done yesterday, right after commit 2f718e11.)

Diffstat:
Msrc/files.c | 20++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/files.c b/src/files.c @@ -422,19 +422,19 @@ bool open_buffer(const char *filename, bool new_one) if (has_valid_path(realname)) { #ifndef NANO_TINY - if (ISSET(LOCKING) && !ISSET(VIEW_MODE) && filename[0] != '\0') { - char *thelocksname = do_lockfile(realname, TRUE); + if (ISSET(LOCKING) && !ISSET(VIEW_MODE) && filename[0] != '\0') { + char *thelocksname = do_lockfile(realname, TRUE); - /* When not overriding an existing lock, discard the buffer. */ - if (thelocksname == SKIPTHISFILE) { + /* When not overriding an existing lock, discard the buffer. */ + if (thelocksname == SKIPTHISFILE) { #ifdef ENABLE_MULTIBUFFER - close_buffer(); + close_buffer(); #endif - free(realname); - return FALSE; - } else - openfile->lock_filename = thelocksname; - } + free(realname); + return FALSE; + } else + openfile->lock_filename = thelocksname; + } #endif /* NANO_TINY */ } }