Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove kill_line command which is duplicate of cut_to_buffer
  • Loading branch information
keyan committed Jan 21, 2015
commit fb46b607d0354085c96f11dc37e047ae6e817dc3
2 changes: 0 additions & 2 deletions bpython/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ def loadini(struct, configfile):
'transpose_chars': 'C-t',
'clear_line': 'C-u',
'clear_screen': 'C-l',
'kill_line': 'C-k',
'clear_word': 'C-w',
'cut_to_buffer': 'C-k',
'delete': 'C-d',
Expand Down Expand Up @@ -172,7 +171,6 @@ def get_key_no_doublebind(command):
struct.transpose_chars_key = get_key_no_doublebind('transpose_chars')
struct.clear_line_key = get_key_no_doublebind('clear_line')
struct.clear_screen_key = get_key_no_doublebind('clear_screen')
struct.kill_line_key = get_key_no_doublebind('kill_line')
struct.exit_key = get_key_no_doublebind('exit')
struct.last_output_key = get_key_no_doublebind('last_output')
struct.edit_config_key = get_key_no_doublebind('edit_config')
Expand Down
2 changes: 1 addition & 1 deletion bpython/curtsiesfrontend/manual_readline.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def delete_line(cursor_offset, line):
def uppercase_next_word(cursor_offset, line):
return cursor_offset, line #TODO Not implemented

@edit_keys.on(config='kill_line_key')
@edit_keys.on(config='cut_to_buffer_key')
@kills_ahead
def delete_from_cursor_forward(cursor_offset, line):
return cursor_offset, line[:cursor_offset], line[cursor_offset:]
Expand Down