From c718f56ed9e07f66b6d476d16c2eea81e15c37d2 Mon Sep 17 00:00:00 2001 From: aycabta Date: Fri, 28 Jun 2019 22:25:35 +0900 Subject: [PATCH] Remove auto indent of continuation line --- lib/irb/ruby-lex.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index 234a038d67..ac26f28c3a 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -308,9 +308,6 @@ class RubyLex def check_newline_depth_difference depth_difference = 0 - if @tokens.size >= 2 and @tokens.last[2].end_with?("\n") and @tokens[-2][3].nobits?(Ripper::EXPR_END | Ripper::EXPR_ENDFN | Ripper::EXPR_CMDARG | Ripper::EXPR_LABEL) - return 1 - end @tokens.each_with_index do |t, index| case t[1] when :on_ignored_nl, :on_nl