Skip to content

Commit

Permalink
Catch SIGINT earlier during shell session. Fixes #111.
Browse files Browse the repository at this point in the history
  • Loading branch information
asedge committed Feb 22, 2015
1 parent 2133562 commit d0ebd3b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/gitlab/shell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ class << self
attr_reader :arguments, :command

def start
trap('INT') { quit_shell } # capture ctrl-c
setup

while buffer = Readline.readline('gitlab> ')
trap('INT') { quit_shell } # capture ctrl-c

begin
parse_input buffer

Expand Down

0 comments on commit d0ebd3b

Please sign in to comment.