Bugs item #1628593, was opened at 2007-01-05 12:04
Message generated for change (Settings changed) made by yooden
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=111005&aid=1628593&group_id=11005

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Program
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 9
Private: No
Submitted By: Bert Wesarg (lebert)
Assigned to: Thorsten Haude (yooden)
Summary: Unnecessary window grow when opening file

Initial Comment:
The NEdit window unnecessary grow, when a file is opened with a linenumber 
width that is less or equal the current  gutter width, after a first resize was 
necessary.

To reproduce:

CVS from 2007-01-05, and set MIN_LINE_NUM_COLS to 3 (just to force the problem 
with small files), with show line numbers option enabled.

open file with < 1000 lines (source/calltips.c)
 => window size doesn't changed
open file with >= 1000 lines (source/macro.c)
 => window size changed by 1, only the gutter (now 4)
open file with < 1000 lines (source/linkdate.c)
 => window size changed by 1, but the gutter is still 4 width




----------------------------------------------------------------------

Comment By: Bert Wesarg (lebert)
Date: 2007-12-22 13:16

Message:
Logged In: YES 
user_id=122956
Originator: YES

one small update to the fix_line_gutter_bugs.diff patch: resize gutter
after closing last window

File Added: fix_line_gutter_bugs.diff

----------------------------------------------------------------------

Comment By: Bert Wesarg (lebert)
Date: 2007-12-22 10:29

Message:
Logged In: YES 
user_id=122956
Originator: YES

This is a follow-up patch, which introduce an option to disable any window
resizing originating from changes to the line gutter width.

optione name: nedit.resizeWindow

File Added: resize-opt.diff

----------------------------------------------------------------------

Comment By: Bert Wesarg (lebert)
Date: 2007-12-21 12:12

Message:
Logged In: YES 
user_id=122956
Originator: YES

Sorry there was a typo in the patch
File Added: fix_line_gutter_bugs.diff

----------------------------------------------------------------------

Comment By: Bert Wesarg (lebert)
Date: 2007-12-21 12:04

Message:
Logged In: YES 
user_id=122956
Originator: YES

Finally, I had time to fix this annoying issue by myself. The fix changes
the
semantic slightly to the following:

The window not only grow when more line columns are needed but also
shrinks if
fewer columns are needed.

I must admit that this new behavior isn't really wanted by me, but makes
the fix
simple. But I think I can live with that.

File Added: fix_line_gutter_bugs.diff

----------------------------------------------------------------------

Comment By: Bert Wesarg (lebert)
Date: 2007-05-20 21:40

Message:
Logged In: YES 
user_id=122956
Originator: YES

ok, my last comment doesn't really fit to this bug report, but it should
be the same problem.

and ajbj, the line numbers are shown fine, only the automatic
window/gutter wide setting is not correct or at least inconsistent.

----------------------------------------------------------------------

Comment By: Bert Wesarg (lebert)
Date: 2007-05-20 21:24

Message:
Logged In: YES 
user_id=122956
Originator: YES

more examples, this time with "Move Tab to ...":

I)

1. open in a new fresh nedit window a file with >10000 lines (so the
gutter does change)
2. open in a new fresh nedit window a file with <10000 lines (so the
gutter don't change)
3. use the "move tab to..." menu command to move the <10000 lines file to
the >10000 lines window
result: the line gutter for the <10000 lines file is still 4, not 5 as the
line gutter for the >10000 lines tab
even after switching tabs the gutter don't change

II)

1. open in a new fresh nedit window a file with <10000 lines (so the
gutter don't change)
2. open in a new fresh nedit window a file with >10000 lines (so the
gutter does change)
3. use the "move tab to..." menu command to move the >10000 lines file to
the <10000 lines window
result: the line gutter for the <10000 lines file is still 4, not 5 as the
line gutter for the >10000 lines tab. but the window was not grown, so one
column is missing from the >10000 lines tab


----------------------------------------------------------------------

Comment By: Tony Balinski (ajbj)
Date: 2007-03-02 00:19

Message:
Logged In: YES 
user_id=618141
Originator: NO

Sounds like [ 1588932 ] "line number not shown correctly" to me.

----------------------------------------------------------------------

Comment By: Thorsten Haude (yooden)
Date: 2007-01-05 13:11

Message:
Logged In: YES 
user_id=119143
Originator: NO

Possibly a follow-up to SF#1055649.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=111005&aid=1628593&group_id=11005
-- 
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop

Reply via email to