comparison src/normal.c @ 5600:d289f2167d70 v7.4.147

updated for version 7.4.147 Problem: Cursor moves to wrong position when using "gj" after "$" and virtual editing is active. Solution: Make "gj" behave differently when virtual editing is active. (Hirohito Higashi)
author Bram Moolenaar <bram@vim.org>
date Tue, 14 Jan 2014 13:18:58 +0100
parents 40aff213baff
children beb037a6c270
comparison
equal deleted inserted replaced
5599:9e9ca74c5753 5600:d289f2167d70
4642 } 4642 }
4643 #ifdef FEAT_VERTSPLIT 4643 #ifdef FEAT_VERTSPLIT
4644 } 4644 }
4645 #endif 4645 #endif
4646 4646
4647 coladvance(curwin->w_curswant); 4647 if (virtual_active() && atend)
4648 coladvance(MAXCOL);
4649 else
4650 coladvance(curwin->w_curswant);
4648 4651
4649 #if defined(FEAT_LINEBREAK) || defined(FEAT_MBYTE) 4652 #if defined(FEAT_LINEBREAK) || defined(FEAT_MBYTE)
4650 if (curwin->w_cursor.col > 0 && curwin->w_p_wrap) 4653 if (curwin->w_cursor.col > 0 && curwin->w_p_wrap)
4651 { 4654 {
4652 /* 4655 /*