Skip to content

Commit

Permalink
Add TODO comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Mar 31, 2019
1 parent 1d79198 commit 61249d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/reline/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def handle_directive(directive)
case directive
when 'if'
condition = false
case args
case args # TODO: variables
when 'mode'
when 'term'
when 'version'
Expand Down Expand Up @@ -218,6 +218,7 @@ def key_notation_to_char(notation)
end

def parse_keyseq(str)
# TODO: Control- and Meta-
ret = String.new(encoding: 'ASCII-8BIT')
while str =~ /(\\C-[A-Za-z_]|\\M-[0-9A-Za-z_]|\\C-M-[A-Za-z_]|\\M-C-[A-Za-z_]|\\e|\\\\|\\"|\\'|\\a|\\b|\\d|\\f|\\n|\\r|\\t|\\v|\\\d{1,3}|\\x\h{1,2}|.)/
ret << key_notation_to_char($&)
Expand Down
2 changes: 1 addition & 1 deletion lib/reline/line_editor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def initialize(config, prompt, encoding = Encoding.default_external)
@completion_state = CompletionState::NORMAL
end

def rerender
def rerender # TODO: support physical and logical lines
if @vi_arg
prompt = "(arg: #{@vi_arg}) "
prompt_width = calculate_width(prompt)
Expand Down

0 comments on commit 61249d5

Please sign in to comment.