Changeset 939


Ignore:
Timestamp:
Nov 14, 2010, 5:55:33 PM (7 years ago)
Author:
stefan
Message:

small bug fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sce/codehelper/CodeHelperPane.java

    r893 r939  
    484484    // if the code helper is visible
    485485    if (isVisible()) {
     486      if (list.getModel().getSize() == 0) {
     487        setVisible(false);
     488        return;
     489      }
     490
    486491      // hide on cursor movement
    487492      if (e.getKeyCode() == KeyEvent.VK_LEFT || e.getKeyCode() == KeyEvent.VK_RIGHT) {
     
    519524      // enter
    520525      if (e.getKeyCode() == KeyEvent.VK_ENTER) {
    521         if (model.size() == 0) return;
    522 
    523526        WordWithPos oldWord = wordPos;
    524527        setVisible(false);
Note: See TracChangeset for help on using the changeset viewer.