Skip to content

Commit fb46b60

Browse files
committed
Remove kill_line command which is duplicate of cut_to_buffer
1 parent 4dbd59a commit fb46b60

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

bpython/config.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ def loadini(struct, configfile):
7474
'transpose_chars': 'C-t',
7575
'clear_line': 'C-u',
7676
'clear_screen': 'C-l',
77-
'kill_line': 'C-k',
7877
'clear_word': 'C-w',
7978
'cut_to_buffer': 'C-k',
8079
'delete': 'C-d',
@@ -172,7 +171,6 @@ def get_key_no_doublebind(command):
172171
struct.transpose_chars_key = get_key_no_doublebind('transpose_chars')
173172
struct.clear_line_key = get_key_no_doublebind('clear_line')
174173
struct.clear_screen_key = get_key_no_doublebind('clear_screen')
175-
struct.kill_line_key = get_key_no_doublebind('kill_line')
176174
struct.exit_key = get_key_no_doublebind('exit')
177175
struct.last_output_key = get_key_no_doublebind('last_output')
178176
struct.edit_config_key = get_key_no_doublebind('edit_config')

bpython/curtsiesfrontend/manual_readline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def delete_line(cursor_offset, line):
250250
def uppercase_next_word(cursor_offset, line):
251251
return cursor_offset, line #TODO Not implemented
252252

253-
@edit_keys.on(config='kill_line_key')
253+
@edit_keys.on(config='cut_to_buffer_key')
254254
@kills_ahead
255255
def delete_from_cursor_forward(cursor_offset, line):
256256
return cursor_offset, line[:cursor_offset], line[cursor_offset:]

0 commit comments

Comments
 (0)