File: 0006-Fix-delete-surrounding-text.patch

package info (click to toggle)
fcitx 1%3A4.2.9.8-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 19,908 kB
  • sloc: ansic: 134,113; cpp: 7,280; sh: 2,778; python: 800; xml: 345; makefile: 39
file content (25 lines) | stat: -rw-r--r-- 794 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 93e36f96ea5bb8bae45b822ac797765d3289f5b3 Mon Sep 17 00:00:00 2001
From: Weng Xuetian <wengxt@gmail.com>
Date: Tue, 8 Dec 2020 21:11:24 -0800
Subject: [PATCH] Fix delete surrounding text

---
 src/frontend/qt/qfcitxinputcontext.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/frontend/qt/qfcitxinputcontext.cpp b/src/frontend/qt/qfcitxinputcontext.cpp
index a6c23e44..e90c277e 100644
--- a/src/frontend/qt/qfcitxinputcontext.cpp
+++ b/src/frontend/qt/qfcitxinputcontext.cpp
@@ -614,7 +614,7 @@ void QFcitxInputContext::deleteSurroundingText(int offset, uint _nchar) {
             start = cursor;
             len = offset;
         } else {
-            start = cursor;
+            start = cursor + offset;
             len = -offset;
         }
 
-- 
2.30.0