am 65f6996a: (-s ours) am eb4bd19e: Terminate loop properly when cursor window is full. DO NOT MERGE

* commit '65f6996add7fe38000b5e28675b70064cec31837':
  Terminate loop properly when cursor window is full. DO NOT MERGE