Mercurial > vim
comparison src/eval.c @ 1757:f10fe14748e2 v7.2.055
updated for version 7.2-055
author | vimboss |
---|---|
date | Fri, 28 Nov 2008 20:29:07 +0000 |
parents | 0c6c64edcbe0 |
children | 45d9e2f80fe1 |
comparison
equal
deleted
inserted
replaced
1756:5fafc42c22d2 | 1757:f10fe14748e2 |
---|---|
10639 win_T *win; | 10639 win_T *win; |
10640 linenr_T lnum; | 10640 linenr_T lnum; |
10641 # ifdef FEAT_WINDOWS | 10641 # ifdef FEAT_WINDOWS |
10642 win_T *wp; | 10642 win_T *wp; |
10643 # endif | 10643 # endif |
10644 int n = 1; | 10644 int winnr = 1; |
10645 | 10645 |
10646 if (row >= 0 && col >= 0) | 10646 if (row >= 0 && col >= 0) |
10647 { | 10647 { |
10648 /* Find the window at the mouse coordinates and compute the | 10648 /* Find the window at the mouse coordinates and compute the |
10649 * text position. */ | 10649 * text position. */ |
10650 win = mouse_find_win(&row, &col); | 10650 win = mouse_find_win(&row, &col); |
10651 (void)mouse_comp_pos(win, &row, &col, &lnum); | 10651 (void)mouse_comp_pos(win, &row, &col, &lnum); |
10652 # ifdef FEAT_WINDOWS | 10652 # ifdef FEAT_WINDOWS |
10653 for (wp = firstwin; wp != win; wp = wp->w_next) | 10653 for (wp = firstwin; wp != win; wp = wp->w_next) |
10654 ++n; | 10654 ++winnr; |
10655 # endif | 10655 # endif |
10656 vimvars[VV_MOUSE_WIN].vv_nr = n; | 10656 vimvars[VV_MOUSE_WIN].vv_nr = winnr; |
10657 vimvars[VV_MOUSE_LNUM].vv_nr = lnum; | 10657 vimvars[VV_MOUSE_LNUM].vv_nr = lnum; |
10658 vimvars[VV_MOUSE_COL].vv_nr = col + 1; | 10658 vimvars[VV_MOUSE_COL].vv_nr = col + 1; |
10659 } | 10659 } |
10660 } | 10660 } |
10661 #endif | 10661 #endif |