lib/sup/modes/line_cursor_mode.rb in sup-0.20.0 vs lib/sup/modes/line_cursor_mode.rb in sup-0.21.0
- old
+ new
@@ -63,10 +63,10 @@
end
def set_cursor_pos p
return if @curpos == p
@curpos = p.clamp @cursor_top, lines
- buffer.mark_dirty
+ buffer.mark_dirty if buffer # not sure why the buffer is gone
set_status
end
## override search behavior to be cursor-based. this is a stupid
## implementation and should be made better. TODO: improve.