lib/textbringer/commands/misc.rb in textbringer-0.1.9 vs lib/textbringer/commands/misc.rb in textbringer-0.2.0
- old
+ new
@@ -78,10 +78,10 @@
end
def update_completions(xs)
if xs.size > 1
if COMPLETION[:original_buffer].nil?
- COMPLETION[:completions_window] = Window.windows[-2]
+ COMPLETION[:completions_window] = Window.list.last
COMPLETION[:original_buffer] =
COMPLETION[:completions_window].buffer
end
completions = Buffer.find_or_new("*Completions*", undo_limit: 0)
if !completions.mode.is_a?(CompletionListMode)