Commit Graph

787 Commits

Author SHA1 Message Date
Andy Stewart
71bbe88525 Distinguish normal and visual modes in map check.
Fixes #642.
2019-08-13 19:22:04 +01:00
Andy Stewart
070cfc531a Move to line more idiomatically. 2019-08-13 16:02:12 +01:00
Andy Stewart
b036fcf527 Stage part of any hunk.
See #279.
2019-08-13 15:57:22 +01:00
Andy Stewart
a5ee9f2f11 Rename variables for clarity. 2019-08-13 15:47:34 +01:00
Andy Stewart
c9fd335246 Add comments. 2019-08-13 15:45:51 +01:00
Andy Stewart
773a5697f1 Warn user when git rejects patch. 2019-08-13 15:45:29 +01:00
Andy Stewart
50a7a9f6cb Ensure no extra blank line in hunk preview window.
Closes #640.
2019-08-13 13:06:58 +01:00
Andy Stewart
609b2170bf Merge branch 'master' of ssh://github.com/airblade/vim-gitgutter
* 'master' of ssh://github.com/airblade/vim-gitgutter:
  Fix #639: Use more careful way to enable `numhl`
2019-08-12 17:20:02 +01:00
Andy Stewart
bc1d28db46 Allow staging part of an additions-only hunk.
See #279.
2019-08-12 17:19:05 +01:00
delphinus
f2bf8376ae Fix #639: Use more careful way to enable numhl
The development versions of v0.3.2 also report `has('nvim-0.3.2')` to be
true even if they do not support the `numhl` feature. So here it catches
and ignores the possible errors.
2019-08-12 12:08:47 +01:00
Andy Stewart
fef14f1d49 Ignore non-gitgutter signs by default on Neovim >= 0.4.0
See #627.
2019-08-12 10:03:59 +01:00
Dan Aloni
9bf988bd1d Add g:gitgutter_sign_allow_clobber to control clobbering.
I.e. how gitgutter handles non-gitgutter signs.

See #565, #627.

Co-authored-by: Andy Stewart <boss@airbladesoftware.com>
2019-08-10 07:29:15 +01:00
Andy Stewart
de200ffdd4 Document cmd.exe vulnerability where it can execute the wrong git.
See #508, #538.
2019-08-10 06:16:13 +01:00
delphinus
6c320c71c5 Update README 2019-08-08 16:40:35 +01:00
delphinus
c9ef2cd3d0 Fix typo in existent doc 2019-08-08 16:40:35 +01:00
delphinus
eb89ba52dc Add doc for highlighting line numbers 2019-08-08 16:40:35 +01:00
delphinus
fc4f9d2039 Add commands to control numhl highlights 2019-08-08 16:40:35 +01:00
delphinus
67b3ed65e3 Enable to toggle numhl 2019-08-08 16:40:35 +01:00
delphinus
78876150ae Add logic for sign with numhl 2019-08-08 16:40:35 +01:00
Andy Stewart
ed4d8bec89 Add note to readme about preview window location. 2019-08-08 16:33:47 +01:00
Andy Stewart
e564c28b6a Add link in docs. 2019-08-08 16:32:18 +01:00
homestar
8985017094 Add g:gitgutter_preview_win_location option 2019-08-08 16:31:44 +01:00
Andy Stewart
c75c83df53 Ensure maps set on all buffers for vim -o/-O.
Fixes #634.
2019-07-26 10:27:58 +01:00
Andy Stewart
91471746fe Avoid asynchronous job while vim is starting.
An asynchronous job at startup evidently triggers a Vim (not NeoVim)
rendering bug in some terminals and/or with certain colorschemes.

Terminals reported to be affected: libvte-based ones such as
gnome-terminal, xfce4-terminal, lxterminal, kitty.

Terminals reported to be unaffected: xterm, urxvt.

Closes #619.
2019-07-01 11:24:45 +01:00
Andy Stewart
8aac968f1a Update issue template. 2019-06-19 14:46:53 +01:00
Andy Stewart
eddec4a59a Fix typo in tmux command. 2019-06-19 14:45:24 +01:00
Andy Stewart
5989eb882e Do not overwrite registers when undoing hunks.
Fixes #629.
2019-06-14 16:56:28 +01:00
Andy Stewart
dc3c0dcd2a Ensure git calls always use configured args for git.
See #628.
2019-06-14 12:52:13 +01:00
Andy Stewart
07b60b584e Update signs when file renamed via :saveas
Fixes #551.
2019-06-04 12:37:59 +01:00
Jonny Bylsma
25f3c56335 Make conditional style consistent with codebase 2019-06-04 11:42:20 +01:00
Jonny Bylsma
8696c880df In get_hl(), discard returned synIDattr values of -1 2019-06-04 11:42:20 +01:00
Daniel Hahler
a4e8d3f188 gitgutter#utility#getbufvar: handle not existing buffer 2019-06-03 11:58:08 +01:00
Daniel Hahler
d7777b325a gitgutter#utility#getbufvar: handle not existing buffer
`getbufvar(a:buffer, '')` returns '' then, resulting in an error.
2019-06-03 11:55:54 +01:00
Daniel Hahler
9f21e3dbba Simplify getting highlight fg/bg 2019-06-03 11:32:09 +01:00
Andy Stewart
a7650790ea Work around older Vims not accepting arguments for function().
Fixes #618.
2019-05-31 07:17:36 +01:00
Andy Stewart
6affbc96f1 Invert boolean conditions for clarity. 2019-05-29 14:37:16 +01:00
Andy Stewart
222b1a2fde Extract setting of path. 2019-05-29 14:37:16 +01:00
Andy Stewart
9488098c8c Separate setting maps from setting repo path. 2019-05-29 14:37:16 +01:00
Andy Stewart
064a3d6b10 Move #init_buffer() into #process_buffer(). 2019-05-29 14:36:53 +01:00
Daniel Hahler
50932df59a Simplify async callbacks for setting repo path. 2019-05-29 13:06:05 +01:00
Andy Stewart
5bb4f14ed3 Fix tests in light of sign-priority. 2019-05-29 13:04:39 +01:00
Andy Stewart
e5936a22cf Fix tmux command. 2019-05-15 16:27:17 +01:00
Andy Stewart
a6174df8a2 Document getting focus events in tmux.
Solution by @astier.  Thanks!

See #612.
2019-05-15 16:25:45 +01:00
Andy Stewart
7eeea63e62 Remove debugging statement. 2019-03-11 11:29:59 +00:00
Daniel Hahler
3d313838db Only handle FocusGained after FocusLost 2019-03-11 11:29:11 +00:00
Daniel Hahler
8a4b9ccf52 Fix calls to repeat#set: remove trailing "<CR>" 2019-03-08 13:51:05 +00:00
Daniel Hahler
7201afe8d1 s:on_stderr_nvim: do not call err handler for [''] 2019-03-08 13:47:54 +00:00
Andy Stewart
5c8efd3625 Fix updating of signs when leaving nvim terminal buffer.
Closes #587.
2019-03-04 08:52:54 +00:00
Ana María Martínez Gómez
78db200b12 Correct typo in README
s/ctermb=<Y>/ctermbg=<Y>/
2019-02-26 12:05:42 +00:00
Andy Stewart
3ce2a4be25 Clarify how signs' colours are derived. 2019-02-17 07:10:48 +00:00