diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-10-27 12:28:16 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-10-27 12:28:16 +0100 |
| commit | 145fec60076dd7255ff2185e667796c7c47e2edf (patch) | |
| tree | c712bbc1286e61a90038f0ecb1bf031e2e2e41eb /vis.c | |
| parent | ab227e12694f7fea3c64d93d87e24f017fca65a5 (diff) | |
| download | vis-145fec60076dd7255ff2185e667796c7c47e2edf.tar.gz vis-145fec60076dd7255ff2185e667796c7c47e2edf.tar.xz | |
Also join lines if cursor is on newline (after text)
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -650,7 +650,7 @@ static void op_join(OperatorContext *c) { prev_pos = pos; size_t end = text_line_start(txt, pos); pos = text_char_next(txt, text_line_finish(txt, text_line_prev(txt, end))); - if (pos > c->range.start && end > pos) { + if (pos >= c->range.start && end > pos) { text_delete(txt, pos, end - pos); text_insert(txt, pos, " ", 1); } else { |
