Community
    • Login

    Bug: Vertical Edge Settings > Number of columns is off by one

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    vertical edgecolumns
    9 Posts 8 Posters 4.9k 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.
    • rcpao-enmotusR
      rcpao-enmotus
      last edited by

      Settings > Preferences > Editing > Vertical Edge Settings > Number of columns: 80

      Find/type a line longer than 80 columns.

      Move the blinking cursor to Col: 80 as indicated in the Status line at the bottom of Notepad++.

      The Vertical Edge Line is one column to the right of the cursor at Col: 80. I expected the Vertical Edge Line to be with the blinking cursor.

      npp.7.3.Installer.exe

      Scott SumnerS Claudia FrankC 2 Replies Last reply Reply Quote 0
      • Scott SumnerS
        Scott Sumner @rcpao-enmotus
        last edited by

        @rcpao-enmotus

        Well, I guess it is open to interpretation, but for me I’d say there is no bug. I have mine set to 80 and if I form a selection (starting from the left edge of the window) so that the grey (selection) highlighting just touches the vertical edge line, I have 80 characters in my selection. This is what I expect.

        1 Reply Last reply Reply Quote 2
        • Claudia FrankC
          Claudia Frank @rcpao-enmotus
          last edited by

          @rcpao-enmotus

          visual confirmation of Scotts argument

          Cheers
          Claudia

          1 Reply Last reply Reply Quote 1
          • rcpaoR
            rcpao
            last edited by

            Okay. It is not a bug.

            Vertical Edge Settings dialog box is “Number of columns : 79” instead of “Vertical edge column: 80” so I would have to input 79 instead of 80. I expected them to all be visibly at the same location: the vertical edge line, the cursor location, and the Status bar’s “Col: 80” at the bottom. I was also expecting word wrap to happen at the vertical edge, but it actually happens at the right edge of the edit window. It’s not a big deal. It’s still a great editor.

            Claudia FrankC 1 Reply Last reply Reply Quote 0
            • Claudia FrankC
              Claudia Frank @rcpao
              last edited by

              @rcpao

              no, you still have to set 80 if you want to add 80 chars into a line.
              The reason why it shows 81 in statusbar is that cursor has already past column 80.
              The edge cannot be at column 80 as it needs to allow upto 80 chars it is needed to,
              visually, set it to 81.

              Cheers
              Claudia

              1 Reply Last reply Reply Quote 2
              • Haleen JohnH
                Haleen John
                last edited by Haleen John

                This post is deleted!
                1 Reply Last reply Reply Quote -1
                • Neena ThomasN
                  Neena Thomas
                  last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote -1
                  • Pritika SrivastavP
                    Pritika Srivastav Banned
                    last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote -1
                    • Grace BenG
                      Grace Ben
                      last edited by

                      Informative blog with good useful information.

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