Skip to content

Commit

Permalink
(for retriggering CI) remove unused encoding params
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyWzr committed Oct 20, 2024
1 parent a4bf0ea commit ae219e8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/reline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def readline(prompt = '', add_hist = false)
otio = io_gate.prep

may_req_ambiguous_char_width
line_editor.reset(prompt, encoding: encoding)
line_editor.reset(prompt)
if multiline
line_editor.multiline_on
if block_given?
Expand Down
2 changes: 1 addition & 1 deletion test/reline/test_key_actor_emacs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def setup
Reline::HISTORY.clear
@encoding = Reline.core.encoding
@line_editor = Reline::LineEditor.new(@config)
@line_editor.reset(@prompt, encoding: @encoding)
@line_editor.reset(@prompt)
end

def teardown
Expand Down
2 changes: 1 addition & 1 deletion test/reline/test_key_actor_vi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def setup
LINES
@encoding = Reline.core.encoding
@line_editor = Reline::LineEditor.new(@config)
@line_editor.reset(@prompt, encoding: @encoding)
@line_editor.reset(@prompt)
end

def editing_mode_label
Expand Down
3 changes: 1 addition & 2 deletions test/reline/test_string_processing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ def setup
@prompt = '> '
@config = Reline::Config.new
Reline::HISTORY.instance_variable_set(:@config, @config)
@encoding = Reline.core.encoding
@line_editor = Reline::LineEditor.new(@config)
@line_editor.reset(@prompt, encoding: @encoding)
@line_editor.reset(@prompt)
end

def teardown
Expand Down

0 comments on commit ae219e8

Please sign in to comment.