[autocomplete] 84/143: Fix Arithmethtic divide by 0 exception

Benjamin Mesing ben at alioth.debian.org
Sat Oct 19 12:53:22 UTC 2013


This is an automated email from the git hooks/post-receive script.

ben pushed a commit to branch master
in repository autocomplete.

commit d3bbf001a305cbc788fbcf70f8966d79fb5f37b0
Author: Steve Upton <steve at upton.me.uk>
Date:   Wed May 23 14:00:31 2012 +0000

    Fix Arithmethtic divide by 0 exception
---
 .../fife/ui/autocomplete/ParameterizedCompletionChoicesWindow.java   |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/org/fife/ui/autocomplete/ParameterizedCompletionChoicesWindow.java b/src/org/fife/ui/autocomplete/ParameterizedCompletionChoicesWindow.java
index b62036b..cd553cf 100644
--- a/src/org/fife/ui/autocomplete/ParameterizedCompletionChoicesWindow.java
+++ b/src/org/fife/ui/autocomplete/ParameterizedCompletionChoicesWindow.java
@@ -137,7 +137,7 @@ public class ParameterizedCompletionChoicesWindow extends JWindow {
 	public void incSelection(int amount) {
 		int selection = list.getSelectedIndex();
 		selection += amount;
-		if (selection<0) {
+		if (selection<=0) {
 			// Account for nothing selected yet
 			selection = model.getSize()-1;//+= model.getSize();
 		}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/autocomplete.git



More information about the pkg-java-commits mailing list