Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd30df75

Browse files
vbwagnerdmpgpro
authored andcommitted
Change wineditline to version 2.205. Added patch by V.Spiritn, which fixes clipborad paste (PGPRO-1537)
1 parent4aa7a7c commitd30df75

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

‎build/helpers/dependencies.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ wget --no-check-certificate -c http://repo.l.postgrespro.ru/depends/wineditline-
4444
CD /D%DEPENDENCIES_SRC_DIR%
4545
7z x%DOWNLOADS_DIR%\wineditline-%EDITLINE_VER%.zip
4646
CD /D wineditline-%EDITLINE_VER%\src
47+
patch -p2<%ROOT%/patches/wineditline/clipboard_paste.patch||goto :ERROR
4748
CL -I. -c history.c editline.c fn_complete.c||goto :ERROR
4849
LIB /out:edit.lib *.obj||goto :ERROR
4950
MKDIR%DEPENDENCIES_BIN_DIR%\wineditline

‎build/helpers/setvars.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SET OPENSSL_VER=1.0.2n
77
SETGETTEXT_VER=0.19.8
88
SETLIBSSH2_VER=1.6.0
99
SETWXWIDGETS_VER=3.0.2
10-
SETEDITLINE_VER=2.101
10+
SETEDITLINE_VER=2.205
1111

1212
REM Path vars
1313
SETPERL32_PATH=C:\Perl
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
diff --git a/src/editline.c b/src/editline.c
2+
index 27b3c80..008b234 100644
3+
--- a/src/editline.c
4+
+++ b/src/editline.c
5+
@@ -1113,7 +1113,14 @@ char *readline(const char *prompt)
6+
return NULL;
7+
}
8+
if (count) {
9+
- if ((irBuffer.EventType == KEY_EVENT) && irBuffer.Event.KeyEvent.bKeyDown) {
10+
+ if ((irBuffer.EventType == KEY_EVENT) /* && irBuffer.Event.KeyEvent.bKeyDown */) {
11+
+ if (!irBuffer.Event.KeyEvent.bKeyDown && irBuffer.Event.KeyEvent.wVirtualKeyCode != VK_MENU) {
12+
+ if (!ReadConsoleInput(_el_h_in, &irBuffer, 1, &count)) {
13+
+ _el_clean_exit();
14+
+ return NULL;
15+
+ }
16+
+ continue;
17+
+ }
18+
/*
19+
the user pressed a key
20+
*/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp