diff options
author | VG <vg@devys.org> | 2015-07-24 17:34:41 +0200 |
---|---|---|
committer | VG <vg@devys.org> | 2015-07-24 17:34:41 +0200 |
commit | ab212a360ed1c0d10a1f6bf02beee28979a30922 (patch) | |
tree | 41153ff1f43ca2d0ddddc6dace5b5105c715935e /src/rst_tables.py | |
parent | c5d527d906cc0836c29d3733bde518929fda69eb (diff) | |
download | vim-rst-tables-ab212a360ed1c0d10a1f6bf02beee28979a30922.tar.gz vim-rst-tables-ab212a360ed1c0d10a1f6bf02beee28979a30922.tar.bz2 vim-rst-tables-ab212a360ed1c0d10a1f6bf02beee28979a30922.zip |
Revert "remove dependency to vim_bridge"
This reverts commit c5d527d906cc0836c29d3733bde518929fda69eb.
I revert since I modified files in src and run build.py, but previous
modifications of the original author were made to rst_tables.vim directly so
my modifications removed unicode character count bug correction.
Diffstat (limited to 'src/rst_tables.py')
-rw-r--r-- | src/rst_tables.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rst_tables.py b/src/rst_tables.py index a2cfc43..50f5b3b 100644 --- a/src/rst_tables.py +++ b/src/rst_tables.py @@ -1,6 +1,7 @@ import vim import re import textwrap +from vim_bridge import bridged def get_table_bounds(): @@ -254,6 +255,7 @@ def draw_table(indent, table, manual_widths=None): return output +@bridged def reformat_table(): upper, lower, indent = get_table_bounds() slice = vim.current.buffer[upper - 1:lower] @@ -262,6 +264,7 @@ def reformat_table(): vim.current.buffer[upper - 1:lower] = slice +@bridged def reflow_table(): upper, lower, indent = get_table_bounds() slice = vim.current.buffer[upper - 1:lower] |