Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-7565

Groovysh tab completion should provide trailing spaces only when expecting more arguments

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.0, 2.4.4
    • 2.5.0-alpha-1
    • Groovysh
    • None

    Description

      And also bug after 'as' completion of import

      To reproduce ( '|' shows the cursor, <tab> means hitting tab)

      groovy:000> :ex|<tab>
      groovy:000> :exit |  // bad trailing blank, no more arguments allowed
      
      groovy:000> :history sh|<tab>
      groovy:000> :history show |  // bad trailing blank, no more arguments allowed
      
      groovy:000>  import java.lang.Math as Foo|<tab>
      // internal Exception, causes prompt to be reprinted
      

      See https://github.com/apache/incubator-groovy/pull/92

      Attachments

        Activity

          People

            pascalschumacher Pascal Schumacher
            tkruse Thibault Kruse
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: