Mercurial > vim
comparison src/register.c @ 18354:9f51d0cef8da v8.1.2171
patch 8.1.2171: mouse support not always available
Commit: https://github.com/vim/vim/commit/a1cb1d1dce14dd005797590721f1bcd0e7c3b35f
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Oct 17 23:00:07 2019 +0200
patch 8.1.2171: mouse support not always available
Problem: Mouse support not always available.
Solution: Enable mouse support also in tiny version. Do not define
FEAT_MOUSE_XTERM on MS-Windows (didn't really work).
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 17 Oct 2019 23:15:04 +0200 |
parents | f57481564f2c |
children | 6ec1bfb4690b |
comparison
equal
deleted
inserted
replaced
18353:c3a0f5d3c9d4 | 18354:9f51d0cef8da |
---|---|
350 vim_free(reg); | 350 vim_free(reg); |
351 *y_current = tmp; | 351 *y_current = tmp; |
352 } | 352 } |
353 #endif | 353 #endif |
354 | 354 |
355 #if defined(FEAT_MOUSE) || defined(PROTO) | |
356 /* | 355 /* |
357 * return TRUE if the current yank register has type MLINE | 356 * return TRUE if the current yank register has type MLINE |
358 */ | 357 */ |
359 int | 358 int |
360 yank_register_mline(int regname) | 359 yank_register_mline(int regname) |
364 if (regname == '_') // black hole is always empty | 363 if (regname == '_') // black hole is always empty |
365 return FALSE; | 364 return FALSE; |
366 get_yank_register(regname, FALSE); | 365 get_yank_register(regname, FALSE); |
367 return (y_current->y_type == MLINE); | 366 return (y_current->y_type == MLINE); |
368 } | 367 } |
369 #endif | |
370 | 368 |
371 /* | 369 /* |
372 * Start or stop recording into a yank register. | 370 * Start or stop recording into a yank register. |
373 * | 371 * |
374 * Return FAIL for failure, OK otherwise. | 372 * Return FAIL for failure, OK otherwise. |