From d477bfd4eeb9bea2ff1351d43bc1a0db02dd8c60 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 10 Jun 2024 12:24:15 +0200 Subject: [PATCH] tweaks: drop two redundant conditions The function do_tab() is only ever called when in the main edit window, and never called while a bracketed paste is in progress. (The two conditions were thoughtlessly copied when this fragment of code was moved here three commits ago.) --- src/text.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/text.c b/src/text.c index 19c13ce1..e6e01f35 100644 --- a/src/text.c +++ b/src/text.c @@ -59,8 +59,7 @@ void do_tab(void) { #ifndef NANO_TINY /* When is pressed while a region is marked, indent the region. */ - if (openfile->mark && openfile->mark != openfile->current && - currmenu == MMAIN && !bracketed_paste) + if (openfile->mark && openfile->mark != openfile->current) do_indent(); else #endif