editor: more intuitive cursor positioning
authorPhilipp Brüschweiler <blei42@gmail.com>
Tue, 2 Oct 2012 09:06:54 +0000 (11:06 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 4 Oct 2012 15:31:21 +0000 (11:31 -0400)
commit70f83679ee24bd01e7a0f481e23a7da0c10c9cfe
tree5be873dfa337db3ec8c2a062c8c614b687848811
parent9f897c7a5faf3af477d161ddc020f9a3ae0d1cc9
editor: more intuitive cursor positioning

Compute the nearest glyph edge instead of taking the one to the
left of the cursor.

Also fixes a segfault when trying to compute the position for an empty
buffer.
clients/editor.c