Mercurial > vim
comparison src/move.c @ 5735:50dbef5e774a v7.4.212
updated for version 7.4.212
Problem: Now that the +visual feature is always enabled the #ifdefs for it
are not useful.
Solution: Remove the checks for FEAT_VISUAL.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 23 Mar 2014 15:13:05 +0100 |
parents | df3b0b70d8c1 |
children | 37af1e6e91bb |
comparison
equal
deleted
inserted
replaced
5734:657ade71d395 | 5735:50dbef5e774a |
---|---|
2855 colnr_T curswant = curwin->w_curswant; | 2855 colnr_T curswant = curwin->w_curswant; |
2856 int set_curswant = curwin->w_set_curswant; | 2856 int set_curswant = curwin->w_set_curswant; |
2857 win_T *old_curwin = curwin; | 2857 win_T *old_curwin = curwin; |
2858 buf_T *old_curbuf = curbuf; | 2858 buf_T *old_curbuf = curbuf; |
2859 int restart_edit_save; | 2859 int restart_edit_save; |
2860 # ifdef FEAT_VISUAL | |
2861 int old_VIsual_select = VIsual_select; | 2860 int old_VIsual_select = VIsual_select; |
2862 int old_VIsual_active = VIsual_active; | 2861 int old_VIsual_active = VIsual_active; |
2863 # endif | |
2864 | 2862 |
2865 /* | 2863 /* |
2866 * loop through the cursorbound windows | 2864 * loop through the cursorbound windows |
2867 */ | 2865 */ |
2868 # ifdef FEAT_VISUAL | |
2869 VIsual_select = VIsual_active = 0; | 2866 VIsual_select = VIsual_active = 0; |
2870 # endif | |
2871 for (curwin = firstwin; curwin; curwin = curwin->w_next) | 2867 for (curwin = firstwin; curwin; curwin = curwin->w_next) |
2872 { | 2868 { |
2873 curbuf = curwin->w_buffer; | 2869 curbuf = curwin->w_buffer; |
2874 /* skip original window and windows with 'noscrollbind' */ | 2870 /* skip original window and windows with 'noscrollbind' */ |
2875 if (curwin != old_curwin && curwin->w_p_crb) | 2871 if (curwin != old_curwin && curwin->w_p_crb) |
2914 } | 2910 } |
2915 | 2911 |
2916 /* | 2912 /* |
2917 * reset current-window | 2913 * reset current-window |
2918 */ | 2914 */ |
2919 # ifdef FEAT_VISUAL | |
2920 VIsual_select = old_VIsual_select; | 2915 VIsual_select = old_VIsual_select; |
2921 VIsual_active = old_VIsual_active; | 2916 VIsual_active = old_VIsual_active; |
2922 # endif | |
2923 curwin = old_curwin; | 2917 curwin = old_curwin; |
2924 curbuf = old_curbuf; | 2918 curbuf = old_curbuf; |
2925 } | 2919 } |
2926 #endif /* FEAT_CURSORBIND */ | 2920 #endif /* FEAT_CURSORBIND */ |