Reply To: Need help with unindenting please

Product Compare Forums Multi-Edit Support Need help with unindenting please Reply To: Need help with unindenting please

#6324
Clay Martin
Keymaster

Hi John,
This sounds like something I have run into before. If you select a block of lines and leave your cursor on column 1 of the line after the last line you wanted to select (like you might do for a cut and paste) unindent does not work. But if you end your selection after the EOL of the last line in the block, but still on the same line, the indent/undent ops work fine.

To illustrate: cursor position marked with | Selected text marked as text Because of the limits of the forum you will have to imagine the code blocks are aligned out at column 4 or 8 or whatever.

Does not work:
$row = mysql_fetch_assoc($rc) ;
if ($row[‘subcat_id’]==0) {
$thepage=$row[‘page_name’];
}
else {
$thepage=$row[‘spage_name’];
}

|

Works:
$row = mysql_fetch_assoc($rc) ;
if ($row[‘subcat_id’]==0) {
$thepage=$row[‘page_name’];
}
else {
$thepage=$row[‘spage_name’];
}
|