Bug introduced in 11.2 or earlier, partially fixed in 12.0 and finally fixed in 13.0 [CASE:3968507]
(Cross-posted at Wolfram Community.)
I think this is a bug. If someone can help to confirm it, I'll report it to Wolfram. I can selet previous cell group:
SelectionMove[PreviousCell[], All, CellGroup]
But I fail to do this like follows
Maybe you will say that it is a Cell
not a CellGroup
, but why I can do this:
Can anyone give a reasonable explanation? You can get the .nb
test file by run
NotebookPut[Uncompress[First[Values[Databin["fVOforSX"]]["nb"]]]]
All CellGroup
is trying to reach CellGroup from the bottom, it fails so there is no selection.Previous CellGroup
is trying to find it from the "top", so it narrows down selection up to a single cell, it fails but the cell is already selected. Just a guess. $\endgroup$All
behaves as expected andPrevious
gives you too much. $\endgroup$