diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-02-13 12:26:57 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-02-13 13:43:13 +0100 |
| commit | 9a64a8cdd8ce6fac18e3d219dd6e3d1c76dac442 (patch) | |
| tree | bfedab9aa8f06105d65cabbfa6603fdb6bda21b4 /text-motions.c | |
| parent | cc7ce30fa6a2ebdb2e14d589b11520757e5a20e3 (diff) | |
| download | vis-9a64a8cdd8ce6fac18e3d219dd6e3d1c76dac442.tar.gz vis-9a64a8cdd8ce6fac18e3d219dd6e3d1c76dac442.tar.xz | |
Convert call sites of text_line_char_{get,set} to text_line_width_{get,set}
Diffstat (limited to 'text-motions.c')
| -rw-r--r-- | text-motions.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/text-motions.c b/text-motions.c index 04ccab1..298d4ac 100644 --- a/text-motions.c +++ b/text-motions.c @@ -314,15 +314,15 @@ size_t text_line_char_prev(Text *txt, size_t pos) { } size_t text_line_up(Text *txt, size_t pos) { - int count = text_line_char_get(txt, pos); + int width = text_line_width_get(txt, pos); size_t prev = text_line_prev(txt, pos); - return text_line_char_set(txt, prev, count); + return text_line_width_set(txt, prev, width); } size_t text_line_down(Text *txt, size_t pos) { - int count = text_line_char_get(txt, pos); + int width = text_line_width_get(txt, pos); size_t next = text_line_next(txt, pos); - return text_line_char_set(txt, next, count); + return text_line_width_set(txt, next, width); } size_t text_range_line_first(Text *txt, Filerange *r) { |
