Index: trunk/extensions/VisualEditor/modules/es/tools/es.ListButtonTool.js |
— | — | @@ -57,12 +57,12 @@ |
58 | 58 | if( stack.length > 0 ) { |
59 | 59 | stacks.push( stack ); |
60 | 60 | } |
61 | | - |
62 | | - if ( selection.from === selection.to ) { |
63 | | - selection.from += 2; |
64 | | - selection.to += 2; |
65 | | - } else { |
66 | | - if ( stacks.length > 0 ) { |
| 61 | + |
| 62 | + if ( stacks.length > 0 ) { |
| 63 | + if ( selection.from === selection.to ) { |
| 64 | + selection.from += 2; |
| 65 | + selection.to += 2; |
| 66 | + } else { |
67 | 67 | if ( nodes[0].getParent().getElementType() != 'listItem' ) { |
68 | 68 | if ( selection.from < selection.to ) { |
69 | 69 | selection.from += 2; |