1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

improved style for snippet list

This commit is contained in:
Hung Nguyen
2018-04-19 19:05:46 +07:00
parent 50d2f90621
commit d3b3e45800
4 changed files with 59 additions and 12 deletions

View File

@@ -148,7 +148,7 @@ export default class CodeEditor extends React.Component {
cm.execCommand('insertSoftTab')
}
cm.execCommand('goLineEnd')
} else if (!emptyChars.test(charBeforeCursor) || cursor.ch !== 0) {
} else if (!emptyChars.test(charBeforeCursor) || cursor.ch > 1) {
// text expansion on tab key if the char before is alphabet
if (expandSnippet(line, cursor, cm, expandData) === false) {
if (tabs) {