diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2021-03-11 08:41:19 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2021-03-11 08:41:19 +0000 |
commit | 46cbbe3d4566885b8ad4235598389936f63c2c01 (patch) | |
tree | 08d62878ba077a0027ece4ae562d77b160a2d9c1 /grid-reader.c | |
parent | 7bef887fd1051e2bbeb268888b51588ccaac306e (diff) | |
parent | ef9700816fd2bd521bab837ccd85e0a596aa3aa8 (diff) | |
download | rtmux-46cbbe3d4566885b8ad4235598389936f63c2c01.tar.gz rtmux-46cbbe3d4566885b8ad4235598389936f63c2c01.tar.bz2 rtmux-46cbbe3d4566885b8ad4235598389936f63c2c01.zip |
Merge branch 'master' into 3.2-rc
Diffstat (limited to 'grid-reader.c')
-rw-r--r-- | grid-reader.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/grid-reader.c b/grid-reader.c index c011ea1d..ae2f4d2b 100644 --- a/grid-reader.c +++ b/grid-reader.c @@ -172,7 +172,7 @@ grid_reader_cursor_next_word(struct grid_reader *gr, const char *separators) /* Do not break up wrapped words. */ if (grid_get_line(gr->gd, gr->cy)->flags & GRID_LINE_WRAPPED) - xx = grid_reader_line_length(gr) - 1; + xx = gr->gd->sx - 1; else xx = grid_reader_line_length(gr); yy = gr->gd->hsize + gr->gd->sy - 1; @@ -197,7 +197,7 @@ grid_reader_cursor_next_word(struct grid_reader *gr, const char *separators) if (grid_get_line(gr->gd, gr->cy)->flags & GRID_LINE_WRAPPED) - xx = grid_reader_line_length(gr) - 1; + xx = gr->gd->sx - 1; else xx = grid_reader_line_length(gr); } else @@ -216,7 +216,7 @@ grid_reader_cursor_next_word_end(struct grid_reader *gr, const char *separators) /* Do not break up wrapped words. */ if (grid_get_line(gr->gd, gr->cy)->flags & GRID_LINE_WRAPPED) - xx = grid_reader_line_length(gr) - 1; + xx = gr->gd->sx - 1; else xx = grid_reader_line_length(gr); yy = gr->gd->hsize + gr->gd->sy - 1; @@ -241,7 +241,7 @@ grid_reader_cursor_next_word_end(struct grid_reader *gr, const char *separators) if (grid_get_line(gr->gd, gr->cy)->flags & GRID_LINE_WRAPPED) - xx = grid_reader_line_length(gr) - 1; + xx = gr->gd->sx - 1; else xx = grid_reader_line_length(gr); } else @@ -294,7 +294,7 @@ grid_reader_cursor_previous_word(struct grid_reader *gr, const char *separators, GRID_LINE_WRAPPED) break; grid_reader_cursor_up(gr); - grid_reader_cursor_end_of_line(gr, 0, 0); + grid_reader_cursor_end_of_line(gr, 0, 1); } if (gr->cx > 0) gr->cx--; |