Mercurial > vim
view src/proto/textformat.pro @ 30304:f1fe59179180 v9.0.0488
patch 9.0.0488: cursor wrong with virtual text "above" and 'showbreak'
Commit: https://github.com/vim/vim/commit/4c7fd4d68f69b4e420a5448f144f4d57eda22f8c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 17 17:15:33 2022 +0100
patch 9.0.0488: cursor wrong with virtual text "above" and 'showbreak'
Problem: Cursor in wrong position with virtual text "above" and
'showbreak'.
Solution: Take the first character column into account. (closes #11149)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 17 Sep 2022 18:30:04 +0200 |
parents | f103da6ba95f |
children |
line wrap: on
line source
/* textformat.c */ int has_format_option(int x); void internal_format(int textwidth, int second_indent, int flags, int format_only, int c); void auto_format(int trailblank, int prev_line); void check_auto_format(int end_insert); int comp_textwidth(int ff); void op_format(oparg_T *oap, int keep_cursor); void op_formatexpr(oparg_T *oap); int fex_format(linenr_T lnum, long count, int c); void format_lines(linenr_T line_count, int avoid_fex); /* vim: set ft=c : */