Commit Graph

188 Commits

Author SHA1 Message Date
Steve Losh
46c443ee9d Fucking Bitbucket 2017-05-09 13:50:38 +00:00
Steve Losh
b4f3624d01 Added tag v2.6.2 for changeset 6918f8da3839 2016-12-16 13:19:55 -05:00
Steve Losh
f30e9b19ca Update docs 2016-12-16 13:19:43 -05:00
Marius Gedminas
e5dc5f23b8 Fix TypeError when using Python 3
The error shows up on :Gundo and looks like this:

    Error detected while processing function gundo#GundoShow[1]..<SNR>116_GundoShow[4]..<SNR>116_GundoOpen[31]..<SNR>116_GundoRenderPreview:
    line    2:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/home/mg/.vim/bundle/Gundo/autoload/gundo.py", line 474, in GundoRenderPreview
        _output_preview_text(_generate_preview_diff(current, node_before, node_after))
      File "/home/mg/.vim/bundle/Gundo/autoload/gundo.py", line 382, in _generate_preview_diff
        before_time, after_time))
      File "/usr/lib/python3.5/difflib.py", line 1177, in unified_diff
        _check_types(a, b, fromfile, tofile, fromfiledate, tofiledate, lineterm)
      File "/usr/lib/python3.5/difflib.py", line 1312, in _check_types
        raise TypeError('all arguments must be str, not: %r' % (arg,))
    TypeError: all arguments must be str, not: 46
2016-11-24 14:29:04 +02:00
Steve Losh
e7fe41024a Added tag v2.6.1 for changeset 3a3d8751bbe9 2016-01-19 14:49:16 +00:00
Steve Losh
8b63b051a5 Merge pull request #30 from simnalamburt/nvim-support
Neovim support: line buffers shouldn't contain newlines
2016-01-19 14:46:47 +00:00
Hyeon Kim
0d9806d73a Neovim support: line buffers shouldn't contain newlines
The result of `difflib.unified_diff()` may contains newlines at the end of its
each line. It's suppressed in original Vim, but it's illegal in Neovim.

Since there is no good way to prevent `difflib` from appending newlines to the
results, `_output_preview_text()` function should sanitize it.

Thanks @michamos

Reference:
  a5edc5f257/src/nvim/api/buffer.c (L215)
  https://github.com/sjl/gundo.vim/pull/30#issuecomment-170064637
2016-01-11 01:19:22 +09:00
Steve Losh
dd5ab1e930 Added tag v2.6.0 for changeset 5eceebd06c39 2015-12-07 16:00:57 +00:00
Steve Losh
ab2419f220 Update changelog and site 2015-12-07 15:57:20 +00:00
Steve Losh
958803355c Merge. 2015-12-07 15:55:13 +00:00
Steve Losh
e26b56d765 Merge. 2015-12-07 15:52:22 +00:00
Omar Khan
d8ea993adc Send strings to difflib.unified_diff
Python 3.5 adds type-checking to difflib, which causes gundo to fail.
This fixes the issue by converting the arguments to strings.
See https://bugs.python.org/issue17445 for details
2015-12-03 10:00:38 +07:00
David Fisher
b514374da8 Fix pyfile call for paths with spaces 2014-08-27 13:13:45 -07:00
Jacob Parker
330723d386 typo: g:gundo_return_to_window_on_revert -> g:gundo_return_on_revert 2013-08-22 11:11:24 -04:00
Jacob Parker
c8f2c67c77 added g:gundo_return_on_revert 2013-08-22 10:56:37 -04:00
Steve Losh
3975ac8715 Fix site 2013-07-10 20:37:26 -04:00
Steve Losh
b48c5610c3 Added tag v2.5.0 for changeset 39f23f084564 2013-07-10 20:33:08 -04:00
Steve Losh
531f996bfe Fix version number in changelog. yay semver. 2013-07-10 20:32:55 -04:00
Steve Losh
9df0a1404b Update changelog. 2013-07-10 20:32:26 -04:00
Steve Losh
b5a3096211 Merge. 2013-07-10 20:31:53 -04:00
Steve Losh
24625d5c4a Update changelog. 2013-07-10 20:31:27 -04:00
Sergey Alexandrov
64d6d48496 Update inline help message to show real keymaps.
Instead of displaying hardcoded "j/k" for motion between undo states,
real keymaps are fetched from `g:gundo_map_move_older` and
`g:undo_map_move_never` variables.
2013-06-10 17:41:28 +02:00
alvinfrancis
7d8047060d Add g:gundo_playback_delay option
Allow for the option for setting the delay (in milliseconds) to be used
by the GundoPlayTo function in calling vim's sleep command during play
back.
2013-04-15 22:45:52 +08:00
Steve Losh
4c376a8061 Whitespace. 2012-06-02 17:31:48 -04:00
Steve Losh
8a4b87ee5f Added tag v2.4.0 for changeset 25b74fe299c3 2012-06-02 17:29:02 -04:00
Steve Losh
d4d1fd7092 Update help text a bit. 2012-06-02 17:28:40 -04:00
Steve Losh
c3e12d185c Update site. 2012-06-02 17:25:48 -04:00
Steve Losh
5d8e409737 Update changelog. 2012-06-02 17:24:34 -04:00
Steve Losh
cfd39cacf8 Merge. 2012-06-02 17:20:52 -04:00
Steve Losh
5a62bea29f Update lessjs. 2012-04-21 14:37:24 +01:00
Sam Simmons
e2dd66b729 added public show/hide methods and matched toggle open/close method 2012-04-13 00:42:46 -05:00
Steve Losh
ea6302fb6d Add gauge. 2012-04-10 10:18:07 -04:00
heavenshell
7198c51b5d Add r mapping to preview current status 2012-02-16 21:20:28 +09:00
heavenshell
3f41a2cb6d Add r mapping to preview current status 2012-02-16 21:17:21 +09:00
heavenshell
82de3eb07f Add auto preview global option 2012-02-16 00:27:25 +09:00
heavenshell
61c3685c6a Add auto preview global option 2012-02-16 00:18:49 +09:00
Steve Losh
dea060dafe Added tag v2.3.0 for changeset bf31800e9784 2012-02-07 22:01:12 -05:00
Steve Losh
cead753550 Add documentation for the statusline options. 2012-02-07 22:00:03 -05:00
Göran Gustafsson
aa7e5f10bc Added statusline settings. Fixed indentation
I want to use a custom statusline for both Gundo splits so i added two
variables for it setting it. If the variables are empty Gundo works like
normal but if there is something in them the text get used. Example:
  let g:gundo_preview_statusline = "Gundo Preview"
  let g:gundo_tree_statusline = "Gundo Tree"

The indentation was off in a few places so i fixed it. The real tabs was
removed and replaced with spaces like the rest of the source file.
2012-02-05 09:33:52 +01:00
Eli Gundry
50092711ff Added :GundoHide & :GundoShow for easier scripting 2011-12-31 17:37:13 -05:00
Steve Losh
12b6f67aeb Merge. 2011-09-19 08:37:53 -04:00
Strahinja Markovic
4ef4d54aa0 Fix a logic bug with python3 detection
Bug was introduced with previous commit.
2011-08-29 14:39:27 +02:00
Strahinja Markovic
9271614008 Fix bug with python3 support crashing Gundo
The recent change that introduced python3 support also made it the default
python version used for Gundo. This caused a problem with certain versions of
vim where upon toggling the Gundo window, we would be greeted with an error
message: "This Vim cannot execute :py3 after using :python"

This commit adds a g:gundo_prefer_python3 variable (default 0) that can be used
to set a preference for python3. By default, python2 will be used.

This also required moving the variable initialization code to the top, since
just evaluating `has('python3')` seems to trigger the vim error.
2011-08-29 14:13:01 +02:00
Matthew Bell
e90ec8b55d Fixed an issue with return syntax that breaks in python 2.4 2011-08-27 16:38:43 -07:00
Steve Losh
240efe7415 Remove unused file. 2011-08-08 17:07:25 -04:00
lilydjwg
b1a9bae565 Add Python3 support 2011-07-30 17:07:25 +08:00
Steve Losh
deff7ccc23 Add autoload/ to the packaging script. 2011-07-29 09:39:45 -04:00
Steve Losh
51aa33d9fd Added tag v2.2.2 for changeset d6f98011d079 2011-06-28 16:59:38 -04:00
Steve Losh
7fbd418e7b Increment version. 2011-06-28 16:59:30 -04:00
Steve Losh
63ca27fa2a Formatting. 2011-06-28 16:58:00 -04:00