diff options
author | Vincent Driessen <vincent@datafox.nl> | 2010-08-19 00:01:50 +0200 |
---|---|---|
committer | Vincent Driessen <vincent@datafox.nl> | 2010-08-19 00:05:27 +0200 |
commit | 9147256a8a85379c9a0586693f8f64da630126e5 (patch) | |
tree | 5d3bc01e01134199e149c53d2fa8f488cb5f2eb5 /ftplugin | |
parent | 487a1e11f1cb340917bc155adc7fe13a67648b84 (diff) | |
download | vim-rst-tables-9147256a8a85379c9a0586693f8f64da630126e5.tar.gz vim-rst-tables-9147256a8a85379c9a0586693f8f64da630126e5.tar.bz2 vim-rst-tables-9147256a8a85379c9a0586693f8f64da630126e5.zip |
Fix: vim.buffer -> vim.current.buffer
Diffstat (limited to 'ftplugin')
-rw-r--r-- | ftplugin/rst_tables.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ftplugin/rst_tables.vim b/ftplugin/rst_tables.vim index 43e6daf..ed451e1 100644 --- a/ftplugin/rst_tables.vim +++ b/ftplugin/rst_tables.vim @@ -23,7 +23,7 @@ def get_table_bounds(): row, col = vim.current.window.cursor upper = lower = row try: - while vim.buffer[upper - 1].strip(): + while vim.current.buffer[upper - 1].strip(): upper -= 1 except IndexError: pass @@ -31,7 +31,7 @@ def get_table_bounds(): upper += 1 try: - while vim.buffer[lower - 1].strip(): + while vim.current.buffer[lower - 1].strip(): lower += 1 except IndexError: pass @@ -136,7 +136,7 @@ def draw_table(table): def create_table(): upper, lower = get_table_bounds() - slice = vim.buffer[upper - 1:lower] + slice = vim.current.buffer[upper - 1:lower] slice = """\ +==========+================================================================================================+ | Column 1 | Column 2 | @@ -151,7 +151,7 @@ def create_table(): #table = parse_table(slice) #slice = draw_table(table) - vim.buffer[upper - 1:lower] = slice + vim.current.buffer[upper - 1:lower] = slice endpython |