Added signal catching and handling in C and Cython
This commit is contained in:
@ -13,6 +13,7 @@ from functools import reduce
|
||||
import time
|
||||
import re
|
||||
import sys
|
||||
from cpython.exc cimport PyErr_CheckSignals
|
||||
|
||||
|
||||
__title__="Grep view lines that match the given predicates"
|
||||
@ -308,6 +309,7 @@ def run(config):
|
||||
filter = Filter_generator(config["grep"], tax_filter)
|
||||
selection = Line_selection(i_view)
|
||||
for i in range(len(i_view)):
|
||||
PyErr_CheckSignals()
|
||||
pb(i)
|
||||
line = i_view[i]
|
||||
|
||||
|
Reference in New Issue
Block a user