summaryrefslogtreecommitdiff
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-01 18:04:05 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-01 18:04:05 +0100
commitabc39ab642791ae3d22a524516eeedb673a95d9d (patch)
tree6a6bed7722af11198e5912daca94de5c9be60170 /src/ex_docmd.c
parent98e83b295628bc29bc67bcc1adb8ae75d01b8e07 (diff)
downloadvim-abc39ab642791ae3d22a524516eeedb673a95d9d.zip
patch 8.0.0394: tabs are not aligned when scrolling horizontally
Problem: Tabs are not aligned when scrolling horizontally and a Tab doesn't fit. (Axel Bender) Solution: Handle a Tab as a not fitting character. (Christian Brabandt) Also fix that ":redraw" does not scroll horizontally to show the cursor. And fix the test that depended on the old behavior.
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 4c52cdf80..0bf940f31 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -9812,6 +9812,7 @@ ex_redraw(exarg_T *eap)
RedrawingDisabled = 0;
p_lz = FALSE;
+ validate_cursor();
update_topline();
update_screen(eap->forceit ? CLEAR : VIsual_active ? INVERTED : 0);
#ifdef FEAT_TITLE