Bug 162831 - Typing in the goto line field only supports three digitis
Summary: Typing in the goto line field only supports three digitis
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-29 21:31 UTC by Bertjan Broeksema
Modified: 2008-05-30 14:00 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bertjan Broeksema 2008-05-29 21:31:12 UTC
Version:            (using Devel)
Installed from:    Compiled sources

Reproduce:
1. Open a file containing more than 1000 lines.
2. Press ctrl+g
3. Type 1001 and press enter

Now you're at line 100.

4. Type 999
5. Click the upwards arrow several times

And there you go, line numbers above 1000 =:).

6. Having the combo showing a number >= 1000, type again

And now it gets truncated again.

This is not the intended behavior I guess.
Comment 1 FiNeX 2008-05-30 13:14:06 UTC
The range of that combo start from 1 to the number of lines in the file.
I cannot reproduce the bug.

Which revision did you compile?
Comment 2 Bertjan Broeksema 2008-05-30 13:48:44 UTC
Hmm strange. I compiled rev: 813296. I'm not sure if I was clear on this, but the combo is indeed ranging to the linenumber. However I can only reach linenumbers > 999 by clicking the arrows on the right side of the combo and not when typing. The combo is also a bit small.
Comment 3 Bertjan Broeksema 2008-05-30 14:00:53 UTC
I'm really sorry, I found out what i did wrong. I tried to type a number > number of lines.

Having 1030 lines and trying to type 1050 results in 105. Maybe it's an option to set it to the maximum number of lines when getting a number > number of lines. The current behavior can be a bit confusing sometimes as you see =:).