diff options
author | Thomas White <taw@bitwiz.org.uk> | 2013-08-27 22:29:46 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2013-08-27 22:29:46 +0200 |
commit | 3f9b053d662ec26564765b7984443a52b609163b (patch) | |
tree | 484227e69a103ed170a777b6de79a892c497f407 /src/wrap.c | |
parent | c1041289e6684efc6c0b44b31adc771eda895b8d (diff) |
Don't screw up if there are no lines
Diffstat (limited to 'src/wrap.c')
-rw-r--r-- | src/wrap.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -231,6 +231,8 @@ size_t find_cursor_pos(struct frame *fr, double xposd, double yposd) int idx, trail; int x_pos_i; + if ( fr->n_lines == 0 ) return 0; + l = find_cursor_line(fr, yposd, &end); if ( end ) { |