nano

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

commit f8de98f7cd30060f73d0e3f717167acb7c863b06
parent ef7f825d9736e5f039a3b0fde56a9c382bbffe92
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri, 28 Feb 2025 13:48:44 +0100

tweaks: condense a fragment of code

Diffstat:
Msrc/winio.c | 9++-------
1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/src/winio.c b/src/winio.c @@ -746,13 +746,8 @@ int convert_CSI_sequence(const int *seq, size_t length, int *consumed) return FOREIGN_SEQUENCE; } - if (seq[2] == '0') { - bracketed_paste = TRUE; - return BRACKETED_PASTE_MARKER; - } else if (seq[2] == '1') { - bracketed_paste = FALSE; - return BRACKETED_PASTE_MARKER; - } + bracketed_paste = (seq[2] == '0'); + return BRACKETED_PASTE_MARKER; } #endif break;