fix indenting while cursor is in the line

This commit is contained in:
Jean-Tiare Le Bigot 2011-11-26 00:02:25 +01:00
parent 9c14dcd498
commit 7d184a681a
1 changed files with 2 additions and 1 deletions

View File

@ -3538,7 +3538,8 @@ function OUTER(gscope)
function doIndentOutdent(isOut)
{
if (!(rep.selStart && rep.selEnd))
if (!(rep.selStart && rep.selEnd) ||
((rep.selStart[0] == rep.selEnd[0]) && (rep.selStart[1] == rep.selEnd[1]) && rep.selEnd[1] > 1))
{
return false;
}