"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pkg/surveyext/editor.go" between
gh-cli-1.10.3.tar.gz and gh-cli-1.11.0.tar.gz

About: GitHub CLI is GitHub’s official command line tool.

editor.go  (gh-cli-1.10.3):editor.go  (gh-cli-1.11.0)
skipping to change at line 108 skipping to change at line 108
// EXTENDED to handle the e to edit / enter to skip behavior + Bl ankAllowed // EXTENDED to handle the e to edit / enter to skip behavior + Bl ankAllowed
r, _, err := rr.ReadRune() r, _, err := rr.ReadRune()
if err != nil { if err != nil {
return "", err return "", err
} }
if r == 'e' { if r == 'e' {
break break
} }
if r == '\r' || r == '\n' { if r == '\r' || r == '\n' {
if e.BlankAllowed { if e.BlankAllowed {
return "", nil return initialValue, nil
} else { } else {
continue continue
} }
} }
if r == terminal.KeyInterrupt { if r == terminal.KeyInterrupt {
return "", terminal.InterruptErr return "", terminal.InterruptErr
} }
if r == terminal.KeyEndTransmission { if r == terminal.KeyEndTransmission {
break break
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)