Mercurial > vim
comparison src/move.c @ 119:e8f07016e34d
updated for version 7.0042
author | vimboss |
---|---|
date | Wed, 19 Jan 2005 22:18:32 +0000 |
parents | 125e80798a85 |
children | 6df0106fc595 |
comparison
equal
deleted
inserted
replaced
118:45fd0ec37cf3 | 119:e8f07016e34d |
---|---|
869 off = curwin_col_off(); | 869 off = curwin_col_off(); |
870 col += off; | 870 col += off; |
871 | 871 |
872 /* long line wrapping, adjust curwin->w_wrow */ | 872 /* long line wrapping, adjust curwin->w_wrow */ |
873 if (curwin->w_p_wrap && col >= (colnr_T)W_WIDTH(curwin) | 873 if (curwin->w_p_wrap && col >= (colnr_T)W_WIDTH(curwin) |
874 #ifdef FEAT_VERTSPLIT | 874 && W_WIDTH(curwin) - off + curwin_col_off2() > 0) |
875 && curwin->w_width != 0 | |
876 #endif | |
877 ) | |
878 { | 875 { |
879 col -= W_WIDTH(curwin); | 876 col -= W_WIDTH(curwin); |
880 col = col % (W_WIDTH(curwin) - off + curwin_col_off2()); | 877 col = col % (W_WIDTH(curwin) - off + curwin_col_off2()); |
881 } | 878 } |
882 curwin->w_wcol = col; | 879 curwin->w_wcol = col; |