https://bugs.kde.org/show_bug.cgi?id=411165

--- Comment #3 from Eric Depagne <e...@depagne.org> ---
(In reply to Nazar Kalinowski from comment #1)
> I might be interested in implementing this, but there is a (design) problem.
> The spinbox that is used to handle the input for a line number to go to
> currently has a limit of [1; lastline]. In order to implement this feature
> we will have to make it [-lastline; lastline] (e.g. from negative to
> positive).
> The problem with that is that 0 is allowed now, and we will have to decide
> what to do if 0 is selected. I see two options:
> 1. Go to 1 line (which is bad because "goto 1" and "goto 0" are now the same
> things, which is confusing).
> 2. Display some error (which is also bad, because we allow to choose 0 in
> the spinbox when it's actually an error condition).
> Thoughts on this?

Going to line 1 when 0 is selected looks fine to me (as it's probably what is
intended).
Displaying an error seems overkill on the other hand.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to