diff options
author | sharkdp <davidpeter@web.de> | 2020-04-22 20:53:53 +0200 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2020-04-22 23:55:28 +0200 |
commit | 7a87315b940ae7b8a38e83bddedd8f8b908c4c7c (patch) | |
tree | e39fee6e4e9502a32f26665ef3d35a7f89cc3a83 /src | |
parent | 0cde4e9121a34390688825c09dc170a31c04a075 (diff) |
Fix #937
Diffstat (limited to 'src')
-rw-r--r-- | src/printer.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/printer.rs b/src/printer.rs index 4f7fcae9..cdd1d8b0 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -223,6 +223,7 @@ impl<'a> InteractivePrinter<'a> { if self.config.tab_width > 0 { expand_tabs(text, self.config.tab_width, cursor) } else { + *cursor += text.len(); text.to_string() } } |