On Thu, Mar 29, 2007 at 09:37:33PM +0200, Bernhard Roider wrote:
> Curios, both Bugs are reported by Andre, one is against this feature, the 
> other one wants it back ;-)

svn blames Bo for removing the feature in rev 15990:

--- cursor.C    (revision 15989)
+++ cursor.C    (revision 15990)
@@ -747,10 +747,22 @@
        }
 
        if (pos() == 0) {
-               if (inset().nargs() == 1 && depth() == 1 && lastpos() ==
                0)
+               // If empty cell, and not part of a big cell
+               if (lastpos() == 0 && inset().nargs() == 1) {
+                       popLeft();
+                       // Directly delete empty cell: [|[]] => [|] 
+                       if (inMathed()) {
+                               plainErase();
+                               resetAnchor();
+                               return true;
+                       }
+                       // [|], can not delete from inside
                        return false;
-               pullArg();
-               return true;
+               } else {
+                       // move to left
+                       popLeft();
+                       return true;
+               }
        }


Commit message is:

r15990 | bpeng | 2006-11-19 19:33:13 +0100 (Sun, 19 Nov 2006) | 5 lines

BUG 686: delete empty math box with delete/backspace key
        * src/cursor.C: remove nested empty math box
        * src/mathed/InsetMathNest.C: remove the whole empty math box if
        * it 
          can not be deleted from within


So it does not look intentional.

Andre'


 


Reply via email to