comparison src/normal.c @ 5192:c28202427d71 v7.4a.022

updated for version 7.4a.022 Problem: Using "d2g$" does not delete the last character. (ZyX) Solution: Set the "inclusive" flag properly.
author Bram Moolenaar <bram@vim.org>
date Sun, 14 Jul 2013 13:32:15 +0200
parents c624928fbc49
children 22dfcd1494e4
comparison
equal deleted inserted replaced
5191:e9b5ba7bf3de 5192:c28202427d71
4543 int col_off2; /* margin offset for wrapped screen line */ 4543 int col_off2; /* margin offset for wrapped screen line */
4544 int width1; /* text width for first screen line */ 4544 int width1; /* text width for first screen line */
4545 int width2; /* test width for wrapped screen line */ 4545 int width2; /* test width for wrapped screen line */
4546 4546
4547 oap->motion_type = MCHAR; 4547 oap->motion_type = MCHAR;
4548 oap->inclusive = FALSE; 4548 oap->inclusive = (curwin->w_curswant == MAXCOL);
4549 4549
4550 col_off1 = curwin_col_off(); 4550 col_off1 = curwin_col_off();
4551 col_off2 = col_off1 - curwin_col_off2(); 4551 col_off2 = col_off1 - curwin_col_off2();
4552 width1 = W_WIDTH(curwin) - col_off1; 4552 width1 = W_WIDTH(curwin) - col_off1;
4553 width2 = W_WIDTH(curwin) - col_off2; 4553 width2 = W_WIDTH(curwin) - col_off2;