commit | ff04b2df741c769ec1fada512450e232129ecad1 | [log] [tgz] |
---|---|---|
author | gwenn <gtreguier@gmail.com> | Sun Aug 26 10:21:05 2018 +0200 |
committer | gwenn <gtreguier@gmail.com> | Sun Aug 26 10:21:05 2018 +0200 |
tree | 9ad61b090afd8abfa7c66ef58c217cdd036d0179 | |
parent | 652ce66e3fd803225c12baabcb1cadd400f4bf31 [diff] |
Fix windows build
diff --git a/src/tty/windows.rs b/src/tty/windows.rs index 210cefe..e3a3aa5 100644 --- a/src/tty/windows.rs +++ b/src/tty/windows.rs
@@ -313,7 +313,7 @@ // display the prompt ab.push_str(&highlighter.highlight_prompt(prompt)); // display the input line - ab.push_str(&highlighter.highlight(line, pos)); + ab.push_str(&highlighter.highlight(line, line.pos())); } else { // display the prompt ab.push_str(prompt);