Community
    • Login

    Bug found in "Col" indicator in column mode

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 4 Posters 185 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      Luigi-C
      last edited by

      In a text file, when shifting, left or right, more text lines at the same time in column mode by pressing the TAB key, the “Col” indicator in the status bar is updated incorrectly.

      On the first series of right shift, the “Col” indicator switches to column 1, then it stays still;
      On the following left shifts, the “Col” indicator is updated accordingly the current column;
      On the following right shifts, the “Col” indicator is first updated wrongly (first backwards to 1, then upwards but incorrectly),

      Steps To Reproduce:

      • Open a text file;
      • Left click at the beginning of a word;
      • Ctrl-Alt-Shift left click at the following row, same column;
      • Press TAB to shift right, note that the “Col” indicator goes to 1, then stays still;
      • Press BACKSPACE to shift left, note that the “Col” indicator is updated correctly;
      • Press TAB to shift right, note that the “Col” indicator first goes backwards, then upwards but shows the wrong column.
      Mark OlsonM mpheathM 2 Replies Last reply Reply Quote 1
      • Mark OlsonM
        Mark Olson @Luigi-C
        last edited by

        @Luigi-C

        Whenever you describe a bug or issue, it is helpful to other forum-goers if you include the info about your installation (?->Debug Info... from the main menu) after the description of your issue.

        1 Reply Last reply Reply Quote 2
        • mpheathM
          mpheath @Luigi-C
          last edited by

          @Luigi-C said in Bug found in "Col" indicator in column mode:

          Steps To Reproduce:

          • Open a text file;
          • Left click at the beginning of a word;

          Selection mode is default 0 named SC_SEL_STREAM.
          This is in stream selection mode.

          • Ctrl-Alt-Shift left click at the following row, same column;
          • Press TAB to shift right, note that the “Col” indicator goes to 1, then stays still;

          Selection mode is 1 named SC_SEL_RECTANGLE.
          This is in rectangular selection mode.

          • Press BACKSPACE to shift left, note that the “Col” indicator is updated correctly;

          The BACKSPACE switches back to stream selection mode.

          • Press TAB to shift right, note that the “Col” indicator first goes backwards, then upwards but shows the wrong column.

          I do not see this behavior in Notepad++ v8.7.7. TAB right updates the column number in the status-bar OK.

          So the issue seems to be the status-bar not updating while in rectangular selection mode as being thin and then TAB entered without a visible selection?

          I tested in SciTE and the column in the status-bar does update when TAB is pressed. SciTE does switch selection modes from 0 to 1. The BACKSPACE switches the selection mode to 3 named SC_SEL_THIN. Then had to create a selection to change mode 3 back to 0.

          Alan KilbornA 1 Reply Last reply Reply Quote 1
          • Alan KilbornA
            Alan Kilborn @mpheath
            last edited by Alan Kilborn

            I cannot reproduce this problem; @mpheath if you can, can you provide an easy-to-follow full set of reproduction steps?

            mpheathM 1 Reply Last reply Reply Quote 0
            • mpheathM
              mpheath @Alan Kilborn
              last edited by

              @Alan-Kilborn

              Enter w and then press home key.

              rs0.png

              Press tab key.

              rs1.png

              Press backspace to go back to state of the 1st image.

              Now press Alt and Shift and click on the caret position.
              A rectangular selection is created with anchor and caret at the same position.

              Press tab key.

              rs2.png

              Compare the 2nd image with the 3rd image.
              Col and Pos in the status-bar are different values.

              Use PythonScript to run

              editor.getSelectionMode()
              

              to get the selection mode with each step.

              1 Reply Last reply Reply Quote 1
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors