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.)
This commit is contained in:
Benno Schulenberg 2024-06-10 12:24:15 +02:00
parent 6c81f60914
commit d477bfd4ee
1 changed files with 1 additions and 2 deletions

View File

@ -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