diff options
-rw-r--r-- | src/display.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/display.c b/src/display.c index c3e9ddb..f38045b 100644 --- a/src/display.c +++ b/src/display.c @@ -2324,7 +2324,14 @@ DisplayLine(struct mline *oml, struct mline *ml, int y, int from, int to) } if (dw_right(ml, x, D_encoding)) { - x--; + if (x>0) + { + x--; + } + else + { + x++; + } debug1("DisplayLine on right side of dw char- x now %d\n", x); GotoPos(x, y); } |