diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-03-12 22:08:12 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-03-12 22:08:12 +0000 |
commit | b9a02fc557ac586b194a80d5ef293d4465f95953 (patch) | |
tree | dabdf3335a347a2094228aa0d78314ef8c618a0f /src/hardcopy.c | |
parent | 600dddcf66a3540017804a72f407d4c3d48b0cc6 (diff) | |
download | vim-git-b9a02fc557ac586b194a80d5ef293d4465f95953.tar.gz |
updated for version 7.0222
Diffstat (limited to 'src/hardcopy.c')
-rw-r--r-- | src/hardcopy.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/hardcopy.c b/src/hardcopy.c index 2bdeb4e2c..e9aa2bd91 100644 --- a/src/hardcopy.c +++ b/src/hardcopy.c @@ -148,7 +148,9 @@ static void prt_line_number __ARGS((prt_settings_T *psettings, int page_line, li static void prt_header __ARGS((prt_settings_T *psettings, int pagenum, linenr_T lnum)); static void prt_message __ARGS((char_u *s)); static colnr_T hardcopy_line __ARGS((prt_settings_T *psettings, int page_line, prt_pos_T *ppos)); +#ifdef FEAT_SYN_HL static void prt_get_attr __ARGS((int hl_id, prt_text_attr_T* pattr, int modec)); +#endif /* * Parse 'printoptions' and set the flags in "printer_opts". @@ -566,7 +568,6 @@ ex_hardcopy(eap) long_u bytes_to_print = 0; int page_line; int jobsplit; - int id; memset(&settings, 0, sizeof(prt_settings_T)); settings.has_color = TRUE; @@ -638,13 +639,15 @@ ex_hardcopy(eap) */ if (prt_use_number() && settings.do_syntax) { + int id; + id = syn_name2id((char_u *)"LineNr"); if (id > 0) id = syn_get_final_id(id); prt_get_attr(id, &settings.number, settings.modec); } -#endif /* FEAT_SYN_HL */ +#endif /* * Estimate the total lines to be printed @@ -890,7 +893,7 @@ hardcopy_line(psettings, page_line, ppos) prt_set_bg(attr.bg_color); } } -#endif /* FEAT_SYN_HL */ +#endif /* * Appropriately expand any tabs to spaces. |