mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 04:41:21 +03:00
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:
parent
6c81f60914
commit
d477bfd4ee
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user