[bug #19326] Misbehaving rectangular select in editor



URL:
  <http://savannah.gnu.org/bugs/?19326>

                 Summary: Misbehaving rectangular select in editor
                 Project: GNU Midnight Commander
            Submitted by: bilboq
            Submitted on: Friday 03/16/2007 at 17:16
                Category: Editor
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: current (CVS or snapshot)
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Rectangular selection behave wrong when selected from right to left and/or
bottom to top.
How to reproduce:

Type (or copy and paste) following text in the MC editor:

xxxxxxxxxxxxxxxxxxx
EaaaaaaaaaaaaaaaaaG
bbbbbbbbbbbbbbbbbbb
ccccccccccccccccccc
HdddddddddddddddddF

Now move the cursor to the letter "E", press Shift+F3 (start or rectangular
selection) and move by cursor arrows to letter "F" (select from left to
right). Selection works normally, you selected a rectangle. But now unselect
all (for example by clicking mouse in editor), move cursor to letter "F",
press Shift+F3 to start selection and move to letter "E" by using arrows
(select from right to left). Note that the block is missing the last column
(with row F) and if you copy the block, the last column will not be copied.
Even worse behavior will be encountered if you select starting from letter
"G" and ending at letter "H" (top and bottom lines are not selected). Same
with selecting from H to G.

Also, if you remove the line with letters "x", so the line with "E" is first
line of file, the selection from E to F will behave badly in other way -
marking on first line seem to "lag behind") when selected from left to right,
as you press the cursor movement keys.





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?19326>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]