Skip to content

Commit 2750028

Browse files
committed
Use +"" in case frozen_string_literal is enabled
1 parent f554318 commit 2750028

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/textbringer/completion_popup.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def format_item(item)
174174
end
175175

176176
def truncate_to_width(str, max_width)
177-
result = ""
177+
result = +""
178178
current_width = 0
179179
str.each_char do |char|
180180
char_width = Buffer.display_width(char)

0 commit comments

Comments
 (0)