Renamed the typewriter config settings

This commit is contained in:
Veronica K. B. Olsen
2020-10-18 19:37:32 +02:00
parent 8e222c1e67
commit dc4257bbf4
7 changed files with 48 additions and 43 deletions
+2 -2
View File
@@ -778,7 +778,7 @@ class GuiDocEditor(QTextEdit):
self.docAction(nwDocAction.SEL_ALL)
return
if self.mainConf.scollWithCursor:
if self.mainConf.autoScroll:
cOld = self.cursorRect().center().y()
QTextEdit.keyPressEvent(self, keyEvent)
@@ -789,7 +789,7 @@ class GuiDocEditor(QTextEdit):
if okMod and okKey:
cNew = self.cursorRect().center().y()
cMov = cNew - cOld
mPos = self.mainConf.scollToPoint * self.viewport().height() * 0.01
mPos = self.mainConf.autoScrollPos * self.viewport().height() * 0.01
if abs(cMov) > 0 and cOld > mPos:
# Move the scroll bar
vBar = self.verticalScrollBar()