line number not shown correctly
Brought to you by:
tringali
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.
Logged In: NO
my nedit was build from the latest source code CVS.
Logged In: YES
user_id=119143
(Status change assuming it to be a regression from my line
number change.)
Logged In: NO
any fix?
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.
Logged In: YES
user_id=11321
9 is not a low priority.
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.
Logged In: YES
user_id=618141
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).
Logged In: NO
The fix works fine.
Thanks a lot, ajbj.