commit d477bfd4eeb9bea2ff1351d43bc1a0db02dd8c60
parent 6c81f609146f5f5801f88cdd4146570c7f0ca9eb
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Mon, 10 Jun 2024 12:24:15 +0200
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.)
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/text.c b/src/text.c
@@ -59,8 +59,7 @@ void do_tab(void)
{
#ifndef NANO_TINY
/* When <Tab> 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