Mercurial > vim
comparison src/ex_docmd.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 | 0ace3a24c2a0 |
children | e25a04c1c515 |
comparison
equal
deleted
inserted
replaced
5734:657ade71d395 | 5735:50dbef5e774a |
---|---|
8575 setpcmark(); | 8575 setpcmark(); |
8576 curwin->w_cursor.lnum = eap->line1; | 8576 curwin->w_cursor.lnum = eap->line1; |
8577 beginline(BL_SOL | BL_FIX); | 8577 beginline(BL_SOL | BL_FIX); |
8578 } | 8578 } |
8579 | 8579 |
8580 #if defined(FEAT_VISUAL) | |
8581 if (VIsual_active) | 8580 if (VIsual_active) |
8582 end_visual_mode(); | 8581 end_visual_mode(); |
8583 #endif | |
8584 | 8582 |
8585 switch (eap->cmdidx) | 8583 switch (eap->cmdidx) |
8586 { | 8584 { |
8587 case CMD_delete: | 8585 case CMD_delete: |
8588 oa.op_type = OP_DELETE; | 8586 oa.op_type = OP_DELETE; |
8989 int p = p_lz; | 8987 int p = p_lz; |
8990 | 8988 |
8991 RedrawingDisabled = 0; | 8989 RedrawingDisabled = 0; |
8992 p_lz = FALSE; | 8990 p_lz = FALSE; |
8993 update_topline(); | 8991 update_topline(); |
8994 update_screen(eap->forceit ? CLEAR : | 8992 update_screen(eap->forceit ? CLEAR : VIsual_active ? INVERTED : 0); |
8995 #ifdef FEAT_VISUAL | |
8996 VIsual_active ? INVERTED : | |
8997 #endif | |
8998 0); | |
8999 #ifdef FEAT_TITLE | 8993 #ifdef FEAT_TITLE |
9000 if (need_maketitle) | 8994 if (need_maketitle) |
9001 maketitle(); | 8995 maketitle(); |
9002 #endif | 8996 #endif |
9003 RedrawingDisabled = r; | 8997 RedrawingDisabled = r; |
9028 p_lz = FALSE; | 9022 p_lz = FALSE; |
9029 if (eap->forceit) | 9023 if (eap->forceit) |
9030 status_redraw_all(); | 9024 status_redraw_all(); |
9031 else | 9025 else |
9032 status_redraw_curbuf(); | 9026 status_redraw_curbuf(); |
9033 update_screen( | 9027 update_screen(VIsual_active ? INVERTED : 0); |
9034 # ifdef FEAT_VISUAL | |
9035 VIsual_active ? INVERTED : | |
9036 # endif | |
9037 0); | |
9038 RedrawingDisabled = r; | 9028 RedrawingDisabled = r; |
9039 p_lz = p; | 9029 p_lz = p; |
9040 out_flush(); | 9030 out_flush(); |
9041 #endif | 9031 #endif |
9042 } | 9032 } |