Having Yi built with gnome flag without GNOME installed makes the Pango frontend crash, complaining about unset gconf key. See http://code.google.com/p/yi-editor/issues/detail?id=319
Since the Pango UI sorta sucks, I thought this would be a nice way to get a usable Gtk UI with less work. This will reduce the amount of work that needs to go into making the UI (since it only needs the vty UI). I bet there's also a way to use IORef and forking so that we don't have to launch an entirely separate instance of Yi, but I haven't figured this out yet.
We no only calculate the single line gap in the case of SingleLine style useage. The previous code had some errors in the case statement. This version makes more sense and seems more readable to me.
In order for scrolling to work we have to differentiate between the height of the window in display lines and the number of actual buffer lines displayed in a window. This patch stores that information in a window.
scrolling off the top or bottom of the screen now just moves the viewport the minimum # of lines necessary to keep the point in sight. This is a much less disruptive scrolling experience.
…ilename The behavior right now hasn't changed. I think some behavior should change, but I have left that for the future (tomorrow?). Creating the parent directories here seems especially broken.