Commit daa3df26 authored by Andreas Schwab's avatar Andreas Schwab
Browse files

(try_window_id): Fix computation of tab_offset when

backing up over a character that is splitted across lines.
parent 657cca97
......@@ -2708,7 +2708,7 @@ try_window_id (window)
if (bp.contin && bp.hpos != lmargin)
{
val.hpos = bp.prevhpos - width + lmargin;
val.tab_offset = bp.tab_offset + bp.prevhpos - width;
val.tab_offset = bp.tab_offset + width - bp.prevhpos;
did_motion = 1;
DEC_BOTH (pos, pos_byte);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment