Skip to content

add frame for linux platform - #29

Merged
Jocs merged 9 commits into
marktext:masterfrom
notAlaanor:master
Mar 20, 2018
Merged

Jocs merged 9 commits into
marktext:masterfrom
notAlaanor:master

Conversation

@notAlaanor

Copy link
Copy Markdown
Contributor
Q A
Bug fix? yes
Fixed tickets #23

Description

Window is created with a frame on Linux platforms.

@SuperSandro2000

Copy link
Copy Markdown
Contributor

Could the two commits be squashed?

Comment thread src/main/createWindow.js Outdated
useContentSize: true,
show: false,
frame: false,
frame: (process.platform === 'linux' ? false : true),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

frame: process.platform === 'linux',

So don't need to use condition ? expr1 : expr2'

This reverts commit c4a268d.
@notAlaanor

Copy link
Copy Markdown
Contributor Author

Whoops, should be fixed now.

@SuperSandro2000

SuperSandro2000 commented Mar 19, 2018 •

Copy link
Copy Markdown
Contributor

@notAlaanor could you please drop/squash those comments and git push -f to keep the commit history clear of clutter? Right now this would add 2 useless commits.

Comment thread src/main/createWindow.js Outdated
useContentSize: true,
show: false,
frame: false,
frame: (process.platform === 'linux'),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is helpful to the Linux users, One more thing, I think the ( and ) are not needed.

Can you remove them, then I will merge this PR.

@Jocs

Jocs commented Mar 19, 2018

Copy link
Copy Markdown
Member

@notAlaanor I will release v0.7.16 after merge this PR.

Jocs and others added 3 commits March 20, 2018 00:56
typewriter: Alt + Cmd + T => Shift + Cmd + T
Source code: Alt + Cmd + S => Shift + Cmd + S
focus: Alt + Cmd + M => Shift + Cmd + F
Comment thread package.json Outdated
"css-loader": "^0.28.4",
"del": "^3.0.0",
"devtron": "^1.4.0",
"electron": "^2.0.0-beta.4",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A ha, I just degrade electron to 2.0.0-beta.1, this change maybe conflict with the last commit I just push.

@Jocs
Jocs merged commit 2c6e472 into marktext:master Mar 20, 2018
thimbleberrysystems pushed a commit to thimbleberrysystems/WordBird that referenced this pull request Jun 21, 2026
Renakoni added a commit to Renakoni/marktext that referenced this pull request Sep 11, 2026
…nts (marktext#4926)

An emoji the user sees as one character can be several code points and
several UTF-16 code units (U+1F468 U+200D U+1F469 U+200D U+1F467 is five and
eight respectively). Handling deletion one code unit — or one code point — at
a time left part of the character behind, and half of a surrogate pair is a
lone surrogate `ot-text-unicode` cannot encode, which is the crash marktext#4926
reports.

- content: a collapsed caret parked *inside* a grapheme cluster now has that
  whole cluster removed on Backspace and Delete, on UAX marktext#29 boundaries via
  `Intl.Segmenter`. Previously the caret was nudged by one code unit and the
  browser was left to delete an arbitrary piece of the character.
- format: the inline-token backspace trim removes a whole leading / trailing
  cluster instead of one code point.
- utils: add `graphemeClusterContaining`, `firstGraphemeLength` and
  `lastGraphemeLength`.
- utils: `diffToTextOp` measured unchanged runs in grapheme clusters, but
  `ot-text-unicode` counts positions in code points. Any edit preceded by a
  multi-code-point character produced an operation aimed at the wrong offsets
  and silently desynced the JSON state from the document.
Renakoni added a commit to Renakoni/marktext that referenced this pull request Sep 11, 2026
…nts (marktext#4926)

An emoji the user sees as one character can be several code points and
several UTF-16 code units (U+1F468 U+200D U+1F469 U+200D U+1F467 is five and
eight respectively). Handling deletion one code unit — or one code point — at
a time left part of the character behind, and half of a surrogate pair is a
lone surrogate `ot-text-unicode` cannot encode, which is the crash marktext#4926
reports.

- content: a collapsed caret parked *inside* a grapheme cluster now has that
  whole cluster removed on Backspace and Delete, on UAX marktext#29 boundaries via
  `Intl.Segmenter`. Previously the caret was nudged by one code unit and the
  browser was left to delete an arbitrary piece of the character.
- format: the inline-token backspace trim removes a whole leading / trailing
  cluster instead of one code point.
- utils: add `graphemeClusterContaining`, `firstGraphemeLength` and
  `lastGraphemeLength`.
- utils: `diffToTextOp` measured unchanged runs in grapheme clusters, but
  `ot-text-unicode` counts positions in code points. Any edit preceded by a
  multi-code-point character produced an operation aimed at the wrong offsets
  and silently desynced the JSON state from the document.
Jocs pushed a commit that referenced this pull request Sep 14, 2026
* fix(muya): delete whole grapheme clusters, not code units or code points (#4926)

An emoji the user sees as one character can be several code points and
several UTF-16 code units (U+1F468 U+200D U+1F469 U+200D U+1F467 is five and
eight respectively). Handling deletion one code unit — or one code point — at
a time left part of the character behind, and half of a surrogate pair is a
lone surrogate `ot-text-unicode` cannot encode, which is the crash #4926
reports.

- content: a collapsed caret parked *inside* a grapheme cluster now has that
  whole cluster removed on Backspace and Delete, on UAX #29 boundaries via
  `Intl.Segmenter`. Previously the caret was nudged by one code unit and the
  browser was left to delete an arbitrary piece of the character.
- format: the inline-token backspace trim removes a whole leading / trailing
  cluster instead of one code point.
- utils: add `graphemeClusterContaining`, `firstGraphemeLength` and
  `lastGraphemeLength`.
- utils: `diffToTextOp` measured unchanged runs in grapheme clusters, but
  `ot-text-unicode` counts positions in code points. Any edit preceded by a
  multi-code-point character produced an operation aimed at the wrong offsets
  and silently desynced the JSON state from the document.

* test(muya): wait for search replacements to reach JSON state

The search-replace E2E tests could read the old Markdown before the queued requestAnimationFrame applied the replacement to JSON state. Poll for the exact replacement result in both the single and all cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants