ignore SIGINT in jsvn
this way ctrl+c gets propagated to svn but does not kill python so the shell still shows the pager instead of going back to the prompt with a non-functioning terminal in need of "reset"
This commit is contained in:
parent
1eb5292502
commit
280f81d2c3
2
jsvn
2
jsvn
@ -14,6 +14,7 @@ import traceback
|
||||
import datetime
|
||||
import types
|
||||
import getopt
|
||||
import signal
|
||||
|
||||
STATUS_LINE_REGEX = r'[ACDIMRX?!~ ][CM ][L ][+ ][SX ][KOTB ]..(.+)'
|
||||
|
||||
@ -1434,6 +1435,7 @@ def do_cmd(argv, realsvn, config, expand=True):
|
||||
pager_proc.wait()
|
||||
|
||||
def main(argv):
|
||||
signal.signal(signal.SIGINT, signal.SIG_IGN)
|
||||
realsvn = find_in_path('svn')
|
||||
config = get_config(realsvn)
|
||||
if config['svn']:
|
||||
|
Loading…
x
Reference in New Issue
Block a user