diff options
| author | mitermayer <mitermayer.reis@gmail.com> | 2018-06-03 23:11:06 -0700 |
|---|---|---|
| committer | mitermayer <mitermayer.reis@gmail.com> | 2018-06-03 23:11:06 -0700 |
| commit | 33d19b72f4f97cccf68b1581f6d33b900bdb4b3c (patch) | |
| tree | aed19c1a1113d7d0e797b799cbaa6537d660a27b /autoload/prettier/utils/buffer.vim | |
| parent | ec6ede90f3b9948ed7063402189653f8d6721326 (diff) | |
| download | vim-prettier-33d19b72f4f97cccf68b1581f6d33b900bdb4b3c.tar.xz | |
Adding documentation for prettier partial formatting
Diffstat (limited to 'autoload/prettier/utils/buffer.vim')
| -rw-r--r-- | autoload/prettier/utils/buffer.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/prettier/utils/buffer.vim b/autoload/prettier/utils/buffer.vim index 0b3c619..258c615 100644 --- a/autoload/prettier/utils/buffer.vim +++ b/autoload/prettier/utils/buffer.vim @@ -35,7 +35,7 @@ function! prettier#utils#buffer#createBufferFromUpdatedLines(lines, start, end) endfunction " Adapted from https://github.com/farazdagi/vim-go-ide -function! s:getCharPosition(line, col) +function! s:getCharPosition(line, col) abort if &encoding !=# 'utf-8' " On utf-8 enconding we can't just use bytes so we need to make sure we can count the " characters, we do that by adding the text into a temporary buffer and counting the chars |
