#564 line number not shown correctly

Program (402)

NEdit release of Aug 20, 2004

Built on: Linux, 386, Intel C++
Built at: Oct 30 2006, 15:54:32
With Motif: 2.2.3 [@(#)Motif Version 2.2.4]
Running Motif: 2.2 [unknown]
Server: The X.Org Foundation 60802000
Visual: 24-bit TrueColor (ID 0x21, Default)
Locale: en_US.UTF-8


1) My default seting is "show line numbers".

2) I have a text file which has 256001 lines.

3) When I open it with nedit, the line numbers at the
end of file was odd--it looks as if they are truncated.

4) However, if I go to the preference and turn off the
line number and then turn on it again, everything
baecomes correctly.


  • Nobody/Anonymous

    Logged In: NO

    my nedit was build from the latest source code CVS.

  • Thorsten Haude

    Thorsten Haude - 2006-11-02

    Logged In: YES

    (Status change assuming it to be a regression from my line
    number change.)

  • Thorsten Haude

    Thorsten Haude - 2006-11-02
    • labels: --> Program
    • milestone: --> development
    • priority: 5 --> 9
    • assigned_to: nobody --> yooden
  • Nobody/Anonymous

    Logged In: NO

    any fix?

  • Nobody/Anonymous

    Logged In: NO

    very disappointed in the very low priority. Showing line number is a very basic
    function , and it doesn't work. It's hard to think the fix is not urgent.

  • Scott Tringali

    Scott Tringali - 2006-11-02

    Logged In: YES

    9 is not a low priority.

  • Nobody/Anonymous

    Logged In: NO

    Any change to the text causes the line number area updated.

    Don't know if this would be helpful for the fix.

  • Tony Balinski

    Tony Balinski - 2006-11-07

    Logged In: YES

    I've just checked in a fix for this, affecting file.c. Could
    you please try it?

    There is a minimum number of columns for the line number
    gutter, set to 4 (MIN_LINE_NUM_COLS) in nedit.h. This is the
    width that is applied to a new window before reading the
    file it will contain. Once the file was read into the
    buffer, the width was not being recalculated.

    We might consider changing MIN_LINE_NUM_COLS to something
    smaller (I would recommend 2).

  • Nobody/Anonymous

    Logged In: NO

    The fix works fine.

    Thanks a lot, ajbj.

  • Thorsten Haude

    Thorsten Haude - 2006-11-22
    • status: open --> closed-fixed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks