diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-02-27 00:08:02 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-02-27 00:08:02 +0000 |
commit | a23ccb8ac6c470d72eb3d081625926965d3a9f52 (patch) | |
tree | 16faa02ddbe83b3b1b35cafea7ea661e748cfbcd /src/workshop.c | |
parent | 1cad2925030b60643dfa9bf441da146ec6e7c014 (diff) | |
download | vim-a23ccb8ac6c470d72eb3d081625926965d3a9f52.zip |
updated for version 7.0208
Diffstat (limited to 'src/workshop.c')
-rw-r--r-- | src/workshop.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/workshop.c b/src/workshop.c index 66365b102..88ff5ec10 100644 --- a/src/workshop.c +++ b/src/workshop.c @@ -1127,13 +1127,13 @@ workshop_get_positions( *curLine = curwin->w_cursor.lnum; *curCol = curwin->w_cursor.col; - if (curbuf->b_visual_mode == 'v' && - equalpos(curwin->w_cursor, curbuf->b_visual_end)) + if (curbuf->b_visual.vi_mode == 'v' && + equalpos(curwin->w_cursor, curbuf->b_visual.vi_end)) { - *selStartLine = curbuf->b_visual_start.lnum; - *selStartCol = curbuf->b_visual_start.col; - *selEndLine = curbuf->b_visual_end.lnum; - *selEndCol = curbuf->b_visual_end.col; + *selStartLine = curbuf->b_visual.vi_start.lnum; + *selStartCol = curbuf->b_visual.vi_start.col; + *selEndLine = curbuf->b_visual.vi_end.lnum; + *selEndCol = curbuf->b_visual.vi_end.col; *selection = get_selection(curbuf); if (*selection) *selLength = strlen(*selection); @@ -1171,10 +1171,10 @@ get_selection( char *new_sp; /* temp pointer to new sp */ int lnum; /* line number we are appending */ - if (buf->b_visual_mode == 'v') + if (buf->b_visual.vi_mode == 'v') { - start = &buf->b_visual_start; - end = &buf->b_visual_end; + start = &buf->b_visual.vi_start; + end = &buf->b_visual.vi_end; if (start->lnum == end->lnum) { /* selection is all on one line */ |