Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added option 'g:bestfriend_observe_cursor_position' for accurate time…

… calculation
  • Loading branch information...
commit af77a5ac247334383f354f6852f7f5899c14843e 1 parent 830bc1b
@tacahiroy authored
Showing with 5 additions and 5 deletions.
  1. +3 −3 autoload/bestfriend.vim
  2. +2 −2 doc/bestfriend.txt
View
6 autoload/bestfriend.vim
@@ -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
4 doc/bestfriend.txt
@@ -101,7 +101,7 @@ 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|,
@@ -109,7 +109,7 @@ calculation will be stopped. Basically, |bestfriend.vim| observe |FocusGained|,
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
<
Please sign in to comment.
Something went wrong with that request. Please try again.