lib/textbringer/commands/misc.rb in textbringer-1.3.0 vs lib/textbringer/commands/misc.rb in textbringer-1.4.1

- old
+ new

@@ -241,9 +241,12 @@ mark = yield(global_mark_ring) if mark.buffer&.current? && Buffer.current.point_at_mark?(mark) mark = yield(global_mark_ring) end if mark.detached? + unless mark.file_name + raise EditorError, "The buffer has gone" + end find_file(mark.file_name) goto_char(mark.location) else switch_to_buffer(mark.buffer) mark.buffer.point_to_mark(mark)