Mercurial > vim
comparison src/register.c @ 29853:31c598083364 v9.0.0265
patch 9.0.0265: no good reason why the "gf" command isn't in the tiny version
Commit: https://github.com/vim/vim/commit/f80f40a55ccff0a4331c5fbd1ac446511f622ed0
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Aug 25 16:02:23 2022 +0100
patch 9.0.0265: no good reason why the "gf" command isn't in the tiny version
Problem: No good reason why the "gf" command is not in the tiny version.
Solution: Graduate the file_in_path feature.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 25 Aug 2022 17:15:03 +0200 |
parents | 89e1d67814a9 |
children | bb0e525e1393 |
comparison
equal
deleted
inserted
replaced
29852:8568b72caa9a | 29853:31c598083364 |
---|---|
912 *allocated = TRUE; | 912 *allocated = TRUE; |
913 if (*argp == NULL && errmsg) | 913 if (*argp == NULL && errmsg) |
914 emsg(_(e_no_inserted_text_yet)); | 914 emsg(_(e_no_inserted_text_yet)); |
915 return TRUE; | 915 return TRUE; |
916 | 916 |
917 #ifdef FEAT_SEARCHPATH | |
918 case Ctrl_F: // Filename under cursor | 917 case Ctrl_F: // Filename under cursor |
919 case Ctrl_P: // Path under cursor, expand via "path" | 918 case Ctrl_P: // Path under cursor, expand via "path" |
920 if (!errmsg) | 919 if (!errmsg) |
921 return FALSE; | 920 return FALSE; |
922 *argp = file_name_at_cursor(FNAME_MESS | FNAME_HYP | 921 *argp = file_name_at_cursor(FNAME_MESS | FNAME_HYP |
923 | (regname == Ctrl_P ? FNAME_EXP : 0), 1L, NULL); | 922 | (regname == Ctrl_P ? FNAME_EXP : 0), 1L, NULL); |
924 *allocated = TRUE; | 923 *allocated = TRUE; |
925 return TRUE; | 924 return TRUE; |
926 #endif | |
927 | 925 |
928 case Ctrl_W: // word under cursor | 926 case Ctrl_W: // word under cursor |
929 case Ctrl_A: // WORD (mnemonic All) under cursor | 927 case Ctrl_A: // WORD (mnemonic All) under cursor |
930 if (!errmsg) | 928 if (!errmsg) |
931 return FALSE; | 929 return FALSE; |
2584 case '#': // alternate file name | 2582 case '#': // alternate file name |
2585 case '=': // expression | 2583 case '=': // expression |
2586 case ':': // last command line | 2584 case ':': // last command line |
2587 case '/': // last search-pattern | 2585 case '/': // last search-pattern |
2588 case '.': // last inserted text | 2586 case '.': // last inserted text |
2589 # ifdef FEAT_SEARCHPATH | |
2590 case Ctrl_F: // Filename under cursor | 2587 case Ctrl_F: // Filename under cursor |
2591 case Ctrl_P: // Path under cursor, expand via "path" | 2588 case Ctrl_P: // Path under cursor, expand via "path" |
2592 # endif | |
2593 case Ctrl_W: // word under cursor | 2589 case Ctrl_W: // word under cursor |
2594 case Ctrl_A: // WORD (mnemonic All) under cursor | 2590 case Ctrl_A: // WORD (mnemonic All) under cursor |
2595 case '_': // black hole: always empty | 2591 case '_': // black hole: always empty |
2596 return MCHAR; | 2592 return MCHAR; |
2597 } | 2593 } |