Permalink
Browse files

Added option 'g:bestfriend_observe_cursor_position' for accurate time…

… calculation
  • Loading branch information...
tacahiroy committed May 6, 2012
1 parent 830bc1b commit af77a5ac247334383f354f6852f7f5899c14843e
Showing with 5 additions and 5 deletions.
  1. +3 −3 autoload/bestfriend.vim
  2. +2 −2 doc/bestfriend.txt
View
@@ -137,7 +137,7 @@ function! s:BestFriend.stop(f) dict
endfunction
function! s:BestFriend.detect_cursor_move(f) dict
- if !self.is_detect_cursor_move
+ if !self.observe_cursor_position
return
endif
@@ -388,8 +388,8 @@ let s:BestFriend.sort_function = s:BestFriend[s:sort_method]
let s:BestFriend.is_sort_base_today = get(g:, 'bestfriend_is_sort_base_today', 1)
let s:BestFriend.is_sort_order_desc = get(g:, 'bestfriend_is_sort_order_desc', 1)
-let s:BestFriend.is_detect_cursor_move = get(g:, 'bestfriend_is_detect_cursor_move',
- \ has('gui_running') ? 0 : 1)
+let s:BestFriend.observe_cursor_position = get(g:, 'bestfriend_observe_cursor_position',
+ \ has('gui_running') ? 0 : 1)
" }}}
View
@@ -101,15 +101,15 @@ If 0 (disabled), ascending.
>
let g:bestfriend_is_sort_order_desc = 1
<
- *g:bestfriend_is_observe_cursor_position*
+ *g:bestfriend_observe_cursor_position*
This variable is set to 1 (enabled), then |bestfriend.vim| observe cursor
position every |updatetime|. And then, if cursor position is not changed, time
calculation will be stopped. Basically, |bestfriend.vim| observe |FocusGained|,
|FocusLost| on gVim, but there are NOT these events on Vim (CUI). This
variable is used to understand the file is being edited or not on Vim.
>
" default: Vim: 1, gVim: 0
- let g:bestfriend_is_observe_cursor_position = 0/1
+ let g:bestfriend_observe_cursor_position = 0/1
<

0 comments on commit af77a5a

Please sign in to comment.